File tree Expand file tree Collapse file tree 2 files changed +195
-86
lines changed
services/web/server/tests/unit/with_dbs/functions_rpc Expand file tree Collapse file tree 2 files changed +195
-86
lines changed Original file line number Diff line number Diff line change 1+ # pylint:disable=unused-variable
2+ # pylint:disable=unused-argument
3+ # pylint:disable=redefined-outer-name
4+
5+
6+ import pytest
7+ from pytest_simcore .helpers .monkeypatch_envs import setenvs_from_dict
8+ from pytest_simcore .helpers .typing_env import EnvVarsDict
9+
10+
11+ @pytest .fixture
12+ def app_environment (
13+ app_environment : EnvVarsDict ,
14+ monkeypatch : pytest .MonkeyPatch ,
15+ ):
16+ return setenvs_from_dict (
17+ monkeypatch ,
18+ {
19+ ** app_environment , # WARNING: AFTER env_devel_dict because HOST are set to 127.0.0.1 in here
20+ "WEBSERVER_DB_LISTENER" : "0" ,
21+ "WEBSERVER_DEV_FEATURES_ENABLED" : "1" ,
22+ "WEBSERVER_GARBAGE_COLLECTOR" : "null" ,
23+ },
24+ )
You can’t perform that action at this time.
0 commit comments