I am building a Pyramid web application which is built on the top of SQLAlchemy and solely relies PostgreSQL as its database backend.
What would be a way to have the unit tests structure so that
To speed up tests, database transactions are rolled back at the
teardown(), or other clean up hook of the test suiteOther tricks to speed up tests could be used, e.g. if SQLAlchemy and PostgreSQL has anything corresponding SQLite's
:in:memory:databaseIt is possible to choose a custom test runner á la
py.testif a specific features outside the standard library unittest framework makes it easier to write test cases.