Skip to content

Commit 886c6a3

Browse files
committed
Disable metadata for plain runs in tests
1 parent 412db64 commit 886c6a3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/conftest.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ def create_test_run_offline(request, monkeypatch: pytest.MonkeyPatch, prevent_sc
168168

169169

170170
@pytest.fixture
171-
def create_plain_run(request, prevent_script_exit, mocker) -> Generator[tuple[sv_run.Run, dict]]:
171+
def create_plain_run(request, prevent_script_exit, mocker, monkeypatch) -> Generator[tuple[sv_run.Run, dict]]:
172172
_ = prevent_script_exit
173+
monkeypatch.setenv("SIMVUE_DISABLE_ENVIRONMENT_METRICS", "True")
174+
monkeypatch.setenv("SIMVUE_DISABLE_GIT_METRICS", "True")
175+
monkeypatch.setenv("SIMVUE_DISABLE_SYSTEM_METRICS", "True")
173176
def testing_exit(status: int) -> None:
174177
raise SystemExit(status)
175178
with sv_run.Run() as run:

0 commit comments

Comments
 (0)