Skip to content

Commit 441706e

Browse files
author
Andrei Neagu
committed
revert
1 parent d0f3e02 commit 441706e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

services/notifications/tests/conftest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,25 @@
22
# pylint: disable=unused-argument
33

44

5+
import pytest
6+
from models_library.basic_types import BootModeEnum
7+
from pytest_simcore.helpers.monkeypatch_envs import EnvVarsDict, setenvs_from_dict
8+
59
pytest_plugins = [
610
"pytest_simcore.docker_compose",
711
"pytest_simcore.docker_swarm",
812
"pytest_simcore.postgres_service",
913
"pytest_simcore.rabbit_service",
1014
"pytest_simcore.repository_paths",
1115
]
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

Comments
 (0)