Tests: Return Path object from patched_home_env() fixture

This commit is contained in:
Mike Salvatore 2021-07-06 11:31:12 -04:00
parent 5ac574bd17
commit a512fd947a
1 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import pytest
@pytest.fixture
def patched_home_env(monkeypatch, tmpdir):
monkeypatch.setenv("HOME", str(tmpdir))
def patched_home_env(monkeypatch, tmp_path):
monkeypatch.setenv("HOME", tmp_path)
return tmpdir
return tmp_path