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 db55a9a commit 3641078Copy full SHA for 3641078
services/dynamic-scheduler/tests/conftest.py
@@ -6,6 +6,7 @@
6
from pathlib import Path
7
from typing import Final
8
9
+import nicegui
10
import pytest
11
import simcore_service_dynamic_scheduler
12
import yaml
@@ -124,6 +125,9 @@ def disable_status_monitor_lifespan(mocker: MockerFixture) -> None:
124
125
async def app(
126
app_environment: EnvVarsDict, is_pdb_enabled: bool
127
) -> AsyncIterator[FastAPI]:
128
+ # forces rebuild of middleware stack on next test
129
+ nicegui.app.user_middleware.clear()
130
+ nicegui.app.middleware_stack = None
131
test_app = create_app()
132
async with LifespanManager(
133
test_app,
0 commit comments