diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-08 07:45:26 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-08 07:51:30 -0500 |
commit | 75d4fb6bc14a4dcf8b503d5d8477b2eb7af83750 (patch) | |
tree | 01cdfdadb390b76a78532b255187093f49032d43 /test_dotfiles.py | |
parent | 190ee4e82363b3464b0f162681262dccc865dfe6 (diff) | |
download | dotfiles-75d4fb6bc14a4dcf8b503d5d8477b2eb7af83750.tar.gz dotfiles-75d4fb6bc14a4dcf8b503d5d8477b2eb7af83750.tar.bz2 dotfiles-75d4fb6bc14a4dcf8b503d5d8477b2eb7af83750.zip |
Remove home directory cli option
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r-- | test_dotfiles.py | 9 |
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 == '' |