aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/conftest.py2
-rw-r--r--tests/test_dotfile.py6
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):