aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cli.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-22 08:54:19 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-22 08:54:19 -0500
commit0eadef7f8034dc07d6322b7afb8c51a17472011e (patch)
treeb15b20f61c1cc617c88fa5fae8b82bd51caa7baa /tests/test_cli.py
parent252d359d0c937a8ff9801a3079c865b4c7abe448 (diff)
downloaddotfiles-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.py9
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)