From a48a9d066de69037f9adbded7bee6bea7072960c Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Wed, 3 Feb 2016 21:07:03 -0500 Subject: Simplify CLI status test --- tests/test_cli.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'tests') 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 == '' -- cgit v1.2.3