File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
services/web/server/tests/unit/with_dbs Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 1212from aiohttp import web
1313from aiohttp .test_utils import TestClient
1414from cryptography .fernet import Fernet
15+ from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
1516from pytest_simcore .helpers .typing_env import EnvVarsDict
1617from pytest_simcore .helpers .webserver_login import NewUser
1718from 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
3146def client (
3247 session_url_path : str ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments