We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a009075 commit ca84f29Copy full SHA for ca84f29
2 files changed
src/main.py
@@ -37,7 +37,7 @@ async def lifespan(
37
) -> AsyncIterator[None]:
38
"""Manage application lifespan - startup and shutdown events."""
39
yield
40
- asyncio.gather(
+ await asyncio.gather(
41
logger.complete(),
42
close_databases(),
43
)
tests/conftest.py
@@ -109,6 +109,9 @@ async def override_userdb() -> AsyncIterator[AsyncConnection]:
109
) as client:
110
yield client
111
112
+ app.dependency_overrides[expdb_connection] = expdb_connection
113
+ app.dependency_overrides[userdb_connection] = userdb_connection
114
+
115
116
@pytest.fixture
117
def dataset_130() -> Iterator[dict[str, Any]]:
0 commit comments