replace mock_env with monkeypatch

This commit is contained in:
Jörg Thalheim
2023-08-26 11:44:38 +02:00
parent fb7c77690a
commit 672e760e2a
5 changed files with 93 additions and 95 deletions

View File

@@ -2,7 +2,6 @@ from pathlib import Path
from typing import Iterator
import pytest
from environment import mock_env
@pytest.fixture
@@ -20,5 +19,5 @@ def clan_flake(temporary_dir: Path, monkeypatch: pytest.MonkeyPatch) -> Iterator
"""
)
monkeypatch.chdir(flake)
with mock_env(HOME=str(temporary_dir)):
yield flake
monkeypatch.setenv("HOME", str(temporary_dir))
yield flake