refine teardown
All checks were successful
Backend CI / unit-test (push) Successful in 25s

This commit is contained in:
2025-09-14 21:09:26 +02:00
parent 2c22f20b48
commit 7041cc654e
3 changed files with 2 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ def _base_type_of(compiled: str) -> str:
def test_run_migrations_0_to_1(monkeypatch: pytest.MonkeyPatch) -> None:
# in-memory engine that preserves the same connection (StaticPool)
SQLModel.metadata.clear()
engine = create_engine(
"sqlite:///:memory:",
connect_args={"check_same_thread": False},