From 689c2a7d0a47da22efb0b43aafb793342a734107 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Thu, 1 Aug 2024 09:43:15 -0400 Subject: [PATCH] Ensure that tmp_home_dir is used for all tests. Confirmed fixes #35 --- conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conftest.py b/conftest.py index 4fdc24d..db6264a 100644 --- a/conftest.py +++ b/conftest.py @@ -6,8 +6,9 @@ from jaraco import vcs -# isolate the tests from a developer's VCS config -pytestmark = pytest.mark.usefixtures('tmp_home_dir') +@pytest.fixture(autouse=True) +def _isolate_home(tmp_home_dir): + """Isolate the tests from a developer's VCS config.""" def _ensure_present(mgr):