Skip to content

Commit

Permalink
Isolate the tests from the user's home directory.
Browse files Browse the repository at this point in the history
Closes #35
  • Loading branch information
jaraco committed Jul 28, 2024
1 parent f1a5534 commit 49c9d80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
from jaraco import vcs


# isolate the tests from a developer's VCS config
pytestmark = pytest.mark.usefixtures('tmp_home_dir')


def _ensure_present(mgr):
try:
mgr.version()
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ test = [
"pygments",
"jaraco.path",
"types-python-dateutil",
"pytest-home",
]
doc = [
# upstream
Expand Down

0 comments on commit 49c9d80

Please sign in to comment.