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 94b008e commit 782e014Copy full SHA for 782e014
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
@@ -163,6 +163,8 @@ def auth(
163
engine.freesize = 3
164
engine.maxsize = 10
165
app.state.engine = engine
166
+ async_engine = mocker.MagicMock()
167
+ app.state.asyncpg_engine = async_engine
168
169
# NOTE: here, instead of using the database, we patch repositories interface
170
mocker.patch(
0 commit comments