fix(db): updated db setup for tests

This commit is contained in:
ribardej
2025-11-11 16:28:12 +01:00
parent 3cdefc33fc
commit 25e587cea8
4 changed files with 10 additions and 36 deletions

View File

@@ -19,9 +19,8 @@ def fastapi_app():
return app
@pytest.fixture(scope="function")
@pytest.fixture(scope="session")
def client(fastapi_app):
# Function-scoped to avoid leaking loop-bound resources into async tests
return TestClient(fastapi_app, raise_server_exceptions=True)