File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
services/web/server/tests/unit/with_dbs/01 Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 1616from servicelib .aiohttp import status
1717from servicelib .aiohttp .application import create_safe_application
1818from simcore_postgres_database .models .products import products
19- from simcore_service_webserver ._meta import API_VTAG
2019from simcore_service_webserver .application_settings import setup_settings
2120from simcore_service_webserver .application_settings_utils import AppConfigDict
2221from simcore_service_webserver .db .plugin import setup_db
@@ -55,25 +54,18 @@ def client(
5554 aiohttp_client : Callable ,
5655 app_cfg : AppConfigDict ,
5756 postgres_db : sa .engine .Engine ,
58- monkeypatch_setenv_from_app_config : Callable ,
5957) -> TestClient :
6058 cfg = deepcopy (app_cfg )
61-
6259 port = cfg ["main" ]["port" ]
6360
64- assert cfg ["rest" ]["version" ] == API_VTAG
65- monkeypatch_setenv_from_app_config (cfg )
66-
67- # fake config
68- app = create_safe_application (cfg )
61+ app = create_safe_application ()
6962
7063 settings = setup_settings (app )
71- print (settings .model_dump_json (indent = 1 ))
72-
64+ assert settings .WEBSERVER_STATICWEB
7365 setup_rest (app )
7466 setup_db (app )
7567 setup_products (app )
76- setup_statics (app )
68+ assert setup_statics (app )
7769
7870 return event_loop .run_until_complete (
7971 aiohttp_client (app , server_kwargs = {"port" : port , "host" : "localhost" })
You can’t perform that action at this time.
0 commit comments