1
Before each test
Tables are created.
2
After each test
Tables are dropped and the engine is disposed.
A fixture gotcha worth knowing
Flask-Login caches the current user ong for the lifetime of an application context. A
fixture that holds one app.app_context() open across requests from several test clients
will resolve every request to the first user loaded.
Seed your data inside a context, then make requests outside it: