diff options
author | Jon Bernard <jbernard@jbernard.io> | 2018-10-11 11:42:53 -0400 |
---|---|---|
committer | Jon Bernard <jbernard@jbernard.io> | 2019-03-05 10:16:06 -0500 |
commit | 9665f21abfe23cae78ee9f437da9a46dba19f22e (patch) | |
tree | af004423bb3f3ad36800c9dfc62470d532d9308b /tests | |
parent | b3e7538dc223ce06e999c771a2ff6f1052370677 (diff) | |
download | dotfiles-9665f21abfe23cae78ee9f437da9a46dba19f22e.tar.gz dotfiles-9665f21abfe23cae78ee9f437da9a46dba19f22e.tar.bz2 dotfiles-9665f21abfe23cae78ee9f437da9a46dba19f22e.zip |
Fix cli tests with pathlib
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 2 | ||||
-rw-r--r-- | tests/test_dotfile.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 9e1d16a..f5beb21 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -8,7 +8,7 @@ from dotfiles.repository import Repository def repo(request, tmpdir): path = tmpdir.ensure_dir('repo') home = tmpdir.ensure_dir(request.param) - return Repository(path, homedir=home) + return Repository(path, home) @pytest.fixture(scope='function') diff --git a/tests/test_dotfile.py b/tests/test_dotfile.py index 6f3eb4e..5672c53 100644 --- a/tests/test_dotfile.py +++ b/tests/test_dotfile.py @@ -1,9 +1,9 @@ import pytest -import py.path +from pathlib import Path from dotfiles.dotfile import Dotfile -from dotfiles.exceptions import \ - IsSymlink, NotASymlink, TargetExists, TargetMissing, Exists +from dotfiles.exceptions import IsSymlink, NotASymlink, TargetExists, \ + TargetMissing, Exists def _make_dotfile(repo, name, target=None): |