schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
179 stars 19 forks source link

feat: Add way for 3rd party resources to register into the PMR cli. #199

Closed DanCardin closed 8 months ago

DanCardin commented 11 months ago

I plan to add documentation about this, once I make the experience of defining a custom Config class much more like defining a "basic" dataclass, than it currently is.

However, as-is, this change allows https://github.com/dancardin/responsaas to auto-register into the PMR cli, which i appreciate.

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7743812980


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/pytest_mock_resources/cli.py 1 4 25.0%
src/pytest_mock_resources/plugin.py 8 17 47.06%
<!-- Total: 9 21 42.86% -->
Totals Coverage Status
Change from base Build 7743789567: 89.7%
Covered Lines: 1428
Relevant Lines: 1575

💛 - Coveralls