From e6c935b715ce1fa385e33aa06375796e5e7980db Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Thu, 21 Jan 2016 22:49:19 -0500 Subject: Allow globs in ignore patterns --- tests/test_repository.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/test_repository.py') 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')) -- cgit v1.2.3