diff options
Diffstat (limited to 'tests/test_cli.py')
-rw-r--r-- | tests/test_cli.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py index f531989..086976c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -4,12 +4,13 @@ from dotfiles.repository import Repository class TestCli(object): - def test_status(self, runner, repo, home, monkeypatch): + def test_status(self, runner, repo, monkeypatch): def repo_init(self, *args, **kwargs): - self.ignore = [] - self.homedir = home - self.repodir = repo.ensure(dir=1) + self.path = repo.path.ensure_dir() + self.homedir = repo.homedir + self.ignore_patterns = repo.ignore_patterns + self.preserve_leading_dot = repo.preserve_leading_dot monkeypatch.setattr(Repository, '__init__', repo_init) |