From 0eadef7f8034dc07d6322b7afb8c51a17472011e Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 22 Jan 2016 08:54:19 -0500 Subject: Simplify test fixtures into a single repository --- tests/test_cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/test_cli.py') 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) -- cgit v1.2.3