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

Dc/evented sqlalchemy #117

Closed DanCardin closed 2 years ago

DanCardin commented 3 years ago

Waiting for https://github.com/sqlalchemy/sqlalchemy/issues/6913 to be released, presumably in 1.4.24, which should make all these failing tests start passing

Fixes https://github.com/schireson/pytest-mock-resources/issues/83, but more generally uses sqlalchemy's event system for applying our changes to the engines. 1. this is how sqlalchemy wants you to do this sort of customization, but also I would guess this addresses/preempts any number of engine related inconsistencies (the previous engine patch system can only approximate what's going on IRL)