aboutsummaryrefslogtreecommitdiffstats
path: root/test_dotfiles.py
diff options
context:
space:
mode:
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r--test_dotfiles.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py
index adefdb2..79274f3 100644
--- a/test_dotfiles.py
+++ b/test_dotfiles.py
@@ -13,10 +13,11 @@ class TestCli(object):
def test_remove(self):
assert False
- def test_status(self, runner, repo, home):
- result = runner.invoke(cli, ['--home-directory', str(home),
- '--repository', str(repo),
- 'status'])
+ def test_status(self, runner, repo, home, monkeypatch):
+ monkeypatch.setattr('dotfiles.DEFAULT_HOMEDIR', str(home))
+ monkeypatch.setattr('dotfiles.DEFAULT_REPO_PATH', str(repo))
+
+ result = runner.invoke(cli, ['status'])
assert not result.exception
assert result.output == ''