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 0fbba90 commit 9837700Copy full SHA for 9837700
services/api-server/src/simcore_service_api_server/core/events.py
@@ -24,6 +24,7 @@ async def _on_startup() -> None:
24
await connect_to_db(app)
25
await asyncpg_connect_to_db(app, app.state.settings.API_SERVER_POSTGRES)
26
assert app.state.engine # nosec
27
+ assert app.state.asyncpg_engine # nosec
28
29
print(APP_STARTED_BANNER_MSG, flush=True) # noqa: T201
30
services/api-server/tests/unit/conftest.py
@@ -212,6 +212,8 @@ def auth(
212
engine.freesize = 3
213
engine.maxsize = 10
214
app.state.engine = engine
215
+ async_engine = mocker.MagicMock()
216
+ app.state.asyncpg_engine = async_engine
217
218
# NOTE: here, instead of using the database, we patch repositories interface
219
mocker.patch(
0 commit comments