File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
22
23
23
import pytest_asyncio # pylint: disable=import-error
24
24
25
- from rasenmaeher_api .web .application import get_app
26
25
from rasenmaeher_api .rmsettings import switchme_to_singleton_call
27
26
from rasenmaeher_api .productapihelpers import check_kraftwerk_manifest
28
27
from rasenmaeher_api .testhelpers import create_test_users
36
35
JWT_PATH = DATA_PATH / Path ("jwt" )
37
36
38
37
38
+ # pylint: disable=W0621
39
+
40
+
39
41
# FIXME Should the TaskMaster feature
40
42
async def tms_wait () -> None :
41
43
"""Wait for background tasks to avoid race conditions"""
@@ -69,8 +71,12 @@ async def taskmaster() -> AsyncGenerator[None, None]:
69
71
70
72
71
73
@pytest .fixture (scope = "session" )
72
- def app_instance () -> FastAPI :
74
+ def app_instance (session_env_config : None ) -> FastAPI :
73
75
"""Singleton app instance"""
76
+ _ = session_env_config
77
+ # We need to import this *after* messing with env or manifest based routes break
78
+ from rasenmaeher_api .web .application import get_app # pylint: disable=import-outside-toplevel
79
+
74
80
app = get_app ()
75
81
return app
76
82
You can’t perform that action at this time.
0 commit comments