aboutsummaryrefslogtreecommitdiff
path: root/tests/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/conftest.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/conftest.py b/tests/conftest.py
index d4336b0..4b1da24 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -17,13 +17,15 @@ def app() -> Iterator[Flask]:
application = create_app(TestingConfig)
with application.app_context():
- db.create_all()
+ # Only create the default database. Separate tests register transient
+ # bind metadata on the shared SQLAlchemy extension.
+ db.create_all(bind_key=None)
yield application
with application.app_context():
db.session.remove()
- db.drop_all()
+ db.drop_all(bind_key=None)
db.engine.dispose()