From 75d4fb6bc14a4dcf8b503d5d8477b2eb7af83750 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Fri, 8 Jan 2016 07:45:26 -0500 Subject: Remove home directory cli option --- test_dotfiles.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test_dotfiles.py') 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 == '' -- cgit v1.2.3