Skip to content

Commit c3eac3b

Browse files
committed
fixe env devel
1 parent b4f9d67 commit c3eac3b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def app_cfg(default_app_cfg: AppConfigDict, unused_tcp_port_factory) -> AppConfi
136136
def app_environment(
137137
monkeypatch: pytest.MonkeyPatch,
138138
app_cfg: AppConfigDict,
139+
mock_env_devel_environment: EnvVarsDict,
139140
monkeypatch_setenv_from_app_config: Callable[[AppConfigDict], EnvVarsDict],
140141
) -> EnvVarsDict:
141142
# WARNING: this fixture is commonly overriden. Check before renaming.
@@ -148,9 +149,10 @@ def app_environment(app_environment: EnvVarsDict, monkeypatch: pytest.MonkeyPatc
148149
monkeypatch.setenv("MODIFIED_ENV", "VALUE")
149150
return app_environment | {"MODIFIED_ENV":"VALUE"}
150151
"""
151-
print("+ web_server:")
152-
cfg = deepcopy(app_cfg)
153-
envs = monkeypatch_setenv_from_app_config(cfg)
152+
153+
envs = mock_env_devel_environment | monkeypatch_setenv_from_app_config(
154+
deepcopy(app_cfg)
155+
)
154156

155157
#
156158
# NOTE: this emulates hostname: "wb-{{.Node.Hostname}}-{{.Task.Slot}}" in docker-compose that

0 commit comments

Comments
 (0)