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
183 stars 19 forks source link

Make the `tables` constructor arg accept a sqlalchemy table object #46

Closed DanCardin closed 5 years ago

DanCardin commented 5 years ago

right now it only accepts a list of strings. It'd be ideal if it also allowed for a list of tables (or models).

if model to get the table: model.__table__ if table to get the full name table.fullname