File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
services/dynamic-scheduler/tests/unit/api_frontend Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1919from settings_library .rabbit import RabbitSettings
2020from settings_library .redis import RedisSettings
2121from settings_library .utils_service import DEFAULT_FASTAPI_PORT
22- from simcore_service_dynamic_scheduler .api .frontend ._utils import get_settings
2322from simcore_service_dynamic_scheduler .core .application import create_app
23+ from simcore_service_dynamic_scheduler .core .settings import ApplicationSettings
2424from tenacity import AsyncRetrying , stop_after_delay , wait_fixed
2525
2626_MODULE : Final ["str" ] = "simcore_service_dynamic_scheduler"
@@ -93,8 +93,10 @@ async def _run_server() -> None:
9393
9494 server_task = asyncio .create_task (_run_server ())
9595
96+ settings : ApplicationSettings = not_initialized_app .state .settings
97+
9698 home_page_url = (
97- f"http://{ server_host_port } { get_settings () .DYNAMIC_SCHEDULER_UI_MOUNT_PATH } "
99+ f"http://{ server_host_port } { settings .DYNAMIC_SCHEDULER_UI_MOUNT_PATH } "
98100 )
99101 async for attempt in AsyncRetrying (
100102 reraise = True , wait = wait_fixed (0.1 ), stop = stop_after_delay (2 )
You can’t perform that action at this time.
0 commit comments