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

Certain schema DDL is issued only once per test but should be once per metadata #153

Closed DanCardin closed 2 years ago

DanCardin commented 2 years ago

Describe the bug If you have a models which make use of schemas, and your fixture supplies two MetaData, then only the first MetaData will produce schemas.

Additional context We currently gate the running of that code per EngineManager. It should probably key off MetaData (which is hashable).