Hi All,
Are there any libraries (or anything in sqlalchemy itself!) that cover
the pattern of running unit tests in against a database such that each
test gets its own sterile environment in which to run? Postgres, if it
helps. I've done some stuff with running in a subtransaction and rolling
back at the end of the test before, but wanted to see if anything had
become common enough to end up in a popular library yet...
What's the recommended way of getting a blank db to test against? Run
alembic migrations in a session-level fixture? Create an empty schema
from the models using create_all? Something else?
cheers,
Chris
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sqlalchemy/a26f0df3-ec7a-bd11-9c2f-b8711499e03d%40withers.org.