We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f3e02 commit 441706eCopy full SHA for 441706e
services/notifications/tests/conftest.py
@@ -2,10 +2,25 @@
2
# pylint: disable=unused-argument
3
4
5
+import pytest
6
+from models_library.basic_types import BootModeEnum
7
+from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
8
+
9
pytest_plugins = [
10
"pytest_simcore.docker_compose",
11
"pytest_simcore.docker_swarm",
12
"pytest_simcore.postgres_service",
13
"pytest_simcore.rabbit_service",
14
"pytest_simcore.repository_paths",
15
]
16
17
18
+@pytest.fixture
19
+def mock_environment(monkeypatch: pytest.MonkeyPatch) -> EnvVarsDict:
20
+ return setenvs_from_dict(
21
+ monkeypatch,
22
+ {
23
+ "LOGLEVEL": "DEBUG",
24
+ "SC_BOOT_MODE": BootModeEnum.DEBUG,
25
+ },
26
+ )
0 commit comments