Skip to content

Commit eab8b6f

Browse files
committed
static
1 parent c3eac3b commit eab8b6f

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

services/web/server/tests/unit/with_dbs/01/test_statics.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
from servicelib.aiohttp import status
1717
from servicelib.aiohttp.application import create_safe_application
1818
from simcore_postgres_database.models.products import products
19-
from simcore_service_webserver._meta import API_VTAG
2019
from simcore_service_webserver.application_settings import setup_settings
2120
from simcore_service_webserver.application_settings_utils import AppConfigDict
2221
from 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"})

0 commit comments

Comments
 (0)