diff --git a/tests/conftest_db.py b/tests/conftest_db.py index 7396178116..925e0fe639 100644 --- a/tests/conftest_db.py +++ b/tests/conftest_db.py @@ -21,6 +21,7 @@ def db_engine_fixture() -> t.Generator[Engine, None, None]: An instance of the created SQLite database engine. """ engine = create_engine("sqlite:///:memory:") + engine.execute("PRAGMA foreign_keys = ON") Base.metadata.create_all(engine) yield engine engine.dispose()