From 9665f21abfe23cae78ee9f437da9a46dba19f22e Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 11 Oct 2018 11:42:53 -0400 Subject: Fix cli tests with pathlib --- tests/conftest.py | 2 +- tests/test_dotfile.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') 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): -- cgit v1.2.3