Skip to content

Commit 5bb8a50

Browse files
committed
fix static
1 parent 56be568 commit 5bb8a50

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

services/web/server/tests/unit/with_dbs/03/test_session.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from aiohttp import web
1313
from aiohttp.test_utils import TestClient
1414
from cryptography.fernet import Fernet
15+
from pytest_simcore.helpers.monkeypatch_envs import setenvs_from_dict
1516
from pytest_simcore.helpers.typing_env import EnvVarsDict
1617
from pytest_simcore.helpers.webserver_login import NewUser
1718
from simcore_service_webserver.application import create_application
@@ -27,6 +28,20 @@ def session_url_path() -> str:
2728
return "/v0/test-session"
2829

2930

31+
@pytest.fixture
32+
def app_environment(
33+
monkeypatch: pytest.MonkeyPatch,
34+
app_environment: EnvVarsDict,
35+
) -> EnvVarsDict:
36+
return app_environment | setenvs_from_dict(
37+
monkeypatch,
38+
{
39+
# do not include static entrypoint
40+
"WEBSERVER_STATICWEB": "null",
41+
},
42+
)
43+
44+
3045
@pytest.fixture
3146
def client(
3247
session_url_path: str,

services/web/server/tests/unit/with_dbs/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def web_server(
194194
mocked_send_email: None,
195195
disable_static_webserver: Callable,
196196
) -> TestServer:
197+
197198
# original APP
198199
app = create_application()
199200

0 commit comments

Comments
 (0)