aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_cli.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
index 086976c..38a37a8 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -6,14 +6,6 @@ class TestCli(object):
def test_status(self, runner, repo, monkeypatch):
- def repo_init(self, *args, **kwargs):
- 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)
-
- result = runner.invoke(cli, ['status'])
+ result = runner.invoke(cli, ['-r', str(repo.path), 'status'])
assert not result.exception
assert result.output == ''