Skip to content

Commit 9b164ad

Browse files
committed
tests: Always use user_path temp dir
1 parent 457fafe commit 9b164ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/conftest.py

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ def user_path(home_path: pathlib.Path):
2222
return p
2323

2424

25+
@pytest.fixture(autouse=True)
26+
def set_user_path(monkeypatch: pytest.MonkeyPatch, user_path: pathlib.Path):
27+
monkeypatch.setenv("HOME", str(user_path))
28+
29+
2530
@pytest.fixture(scope="function")
2631
def repos_path(user_path: pathlib.Path, request: pytest.FixtureRequest):
2732
"""Return temporary directory for repository checkout guaranteed unique."""

0 commit comments

Comments
 (0)