8
8
from fastapi import FastAPI
9
9
from starlette .testclient import TestClient
10
10
11
- import azimuth .app as me_app
11
+ import azimuth .app as azimuth_app
12
12
from azimuth .app import get_ready_flag
13
13
from azimuth .config import AzimuthConfig
14
14
from tests .utils import DATASET_CFG , SIMPLE_PERTURBATION_TESTING_CONFIG
@@ -24,7 +24,7 @@ def is_set(self):
24
24
25
25
def create_test_app (config ) -> FastAPI :
26
26
json .dump (config .dict (by_alias = True ), open ("/tmp/config.json" , "w" ))
27
- return me_app .start_app ("/tmp/config.json" , load_config_history = False , debug = False )
27
+ return azimuth_app .start_app ("/tmp/config.json" , load_config_history = False , debug = False )
28
28
29
29
30
30
FAST_TEST_CFG = {
@@ -44,7 +44,7 @@ def wait_for_startup_after(app):
44
44
while resp .json ()["startupTasksReady" ] is not True :
45
45
time .sleep (1 )
46
46
resp = client .get ("/status" )
47
- task_manager = me_app .get_task_manager ()
47
+ task_manager = azimuth_app .get_task_manager ()
48
48
while task_manager .is_locked :
49
49
time .sleep (1 )
50
50
@@ -70,7 +70,7 @@ def app() -> FastAPI:
70
70
while resp .json ()["startupTasksReady" ] is not True :
71
71
time .sleep (1 )
72
72
resp = client .get ("/status" )
73
- task_manager = me_app .get_task_manager ()
73
+ task_manager = azimuth_app .get_task_manager ()
74
74
while task_manager .is_locked :
75
75
time .sleep (1 )
76
76
yield _app
@@ -79,7 +79,7 @@ def app() -> FastAPI:
79
79
@pytest .fixture (scope = "function" )
80
80
def app_not_started (app ) -> FastAPI :
81
81
82
- startup_tasks = me_app .get_startup_tasks ()
82
+ startup_tasks = azimuth_app .get_startup_tasks ()
83
83
84
84
class ModuleThatWillNeverEnd :
85
85
def status (self ):
0 commit comments