diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-02-03 21:07:03 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-02-03 21:07:03 -0500 |
commit | a48a9d066de69037f9adbded7bee6bea7072960c (patch) | |
tree | 90e2b1f3e2dd848cf038df62b1ee862eb3b5c71d | |
parent | b7c882041b602fbc7d5b4ff7cbfe2313260fb5a1 (diff) | |
download | dotfiles-a48a9d066de69037f9adbded7bee6bea7072960c.tar.gz dotfiles-a48a9d066de69037f9adbded7bee6bea7072960c.tar.bz2 dotfiles-a48a9d066de69037f9adbded7bee6bea7072960c.zip |
Simplify CLI status test
-rw-r--r-- | tests/test_cli.py | 10 |
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 == '' |