diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_dotfile.py | 2 | ||||
-rw-r--r-- | tests/test_repository.py | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/test_dotfile.py b/tests/test_dotfile.py index a913743..ff19d9d 100644 --- a/tests/test_dotfile.py +++ b/tests/test_dotfile.py @@ -1,5 +1,5 @@ -import py import pytest +import py.path from dotfiles.dotfile import Dotfile from dotfiles.exceptions import IsSymlink, NotASymlink diff --git a/tests/test_repository.py b/tests/test_repository.py index 4cf694f..05328e6 100644 --- a/tests/test_repository.py +++ b/tests/test_repository.py @@ -1,5 +1,5 @@ -import py import pytest +import py.path from dotfiles.repository import Repository from dotfiles.exceptions import NotRootedInHome, InRepository, TargetIgnored, \ @@ -48,9 +48,11 @@ def test_dotfile(repo, home): with pytest.raises(NotRootedInHome): Repository(repo, home)._dotfile(py.path.local('/tmp/foo')) with pytest.raises(TargetIgnored): - Repository(repo, home, ignore=['.foo'])._dotfile(home.join('.foo')) + Repository(repo, home, + ignore_patterns=['.foo'])._dotfile(home.join('.foo')) with pytest.raises(TargetIgnored): - Repository(repo, home, ignore=['foo'])._dotfile(home.join('.bar/foo')) + Repository(repo, home, + ignore_patterns=['foo'])._dotfile(home.join('.bar/foo')) with pytest.raises(IsDirectory): Repository(repo, home)._dotfile(home.ensure_dir('.config')) |