aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_cli.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-17 06:29:44 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-17 06:48:44 -0500
commit12f4b315161a0f398b1681b0abfc6f30cbd61f59 (patch)
treefc3910dcb67739de660cb710e2f3e43f85f50885 /tests/test_cli.py
parente570a42cb65d2f3c83c3beaf3c7fd6a07338a9fa (diff)
downloaddotfiles-12f4b315161a0f398b1681b0abfc6f30cbd61f59.tar.gz
dotfiles-12f4b315161a0f398b1681b0abfc6f30cbd61f59.tar.bz2
dotfiles-12f4b315161a0f398b1681b0abfc6f30cbd61f59.zip
Split tests into separate files
Diffstat (limited to 'tests/test_cli.py')
-rw-r--r--tests/test_cli.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py
new file mode 100644
index 0000000..f531989
--- /dev/null
+++ b/tests/test_cli.py
@@ -0,0 +1,18 @@
+from dotfiles.cli import cli
+from dotfiles.repository import Repository
+
+
+class TestCli(object):
+
+ def test_status(self, runner, repo, home, monkeypatch):
+
+ def repo_init(self, *args, **kwargs):
+ self.ignore = []
+ self.homedir = home
+ self.repodir = repo.ensure(dir=1)
+
+ monkeypatch.setattr(Repository, '__init__', repo_init)
+
+ result = runner.invoke(cli, ['status'])
+ assert not result.exception
+ assert result.output == ''