diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-22 08:54:19 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-22 08:54:19 -0500 |
commit | 0eadef7f8034dc07d6322b7afb8c51a17472011e (patch) | |
tree | b15b20f61c1cc617c88fa5fae8b82bd51caa7baa /tests/test_cli.py | |
parent | 252d359d0c937a8ff9801a3079c865b4c7abe448 (diff) | |
download | dotfiles-0eadef7f8034dc07d6322b7afb8c51a17472011e.tar.gz dotfiles-0eadef7f8034dc07d6322b7afb8c51a17472011e.tar.bz2 dotfiles-0eadef7f8034dc07d6322b7afb8c51a17472011e.zip |
Simplify test fixtures into a single repository
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) |