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

Document semantics around queries on global objects #96

Closed DanCardin closed 1 year ago

DanCardin commented 4 years ago

Describe the bug It may or may not be obvious as a client that we (by default) reuse the container, and the semantic effects that that has.

i.e.

The solution, if this effects someone would be to change the behavior (either by some future "strategy" feature, or the fixture scope) by opting out of container sharing and into your container start/stoping per test.