diff options
author | Jon Bernard <jbernard@tuxion.com> | 2016-01-04 16:23:44 -0500 |
---|---|---|
committer | Jon Bernard <jbernard@tuxion.com> | 2016-01-04 16:28:28 -0500 |
commit | 6735cda88aac20d21aecd239927311f07ef4f7f2 (patch) | |
tree | abc900a6e962144a9a633d46840faefdc4cc8cbd /test_dotfiles.py | |
parent | 87fa2782267170afe0812c6a98ec21b3b1631ab7 (diff) | |
download | dotfiles-6735cda88aac20d21aecd239927311f07ef4f7f2.tar.gz dotfiles-6735cda88aac20d21aecd239927311f07ef4f7f2.tar.bz2 dotfiles-6735cda88aac20d21aecd239927311f07ef4f7f2.zip |
Merge list into status and remove verbose
Diffstat (limited to 'test_dotfiles.py')
-rw-r--r-- | test_dotfiles.py | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py index 7f8c4cd..e5bdda2 100644 --- a/test_dotfiles.py +++ b/test_dotfiles.py @@ -6,42 +6,12 @@ from dotfiles import Repository, Dotfile, cli class TestCli(object): - def test_list_empty(self, runner, repo, home): + def test_status(self, runner, repo, home): result = runner.invoke(cli, ['--home-directory', str(home), '--repository', str(repo), - 'list']) + 'status']) assert not result.exception - assert result.output == '[no dotfiles found]\n' - - def test_list(self, runner, repo, home): - repo.ensure('foo') - repo.ensure('bar') - repo.ensure('baz') - result = runner.invoke(cli, ['--home-directory', str(home), - '--repository', str(repo), - 'list']) - assert not result.exception - assert result.output == ('.bar\n' - '.baz\n' - '.foo\n') - - def test_list_verbose(self, runner, repo, home): - repo.ensure('baz') - repo.ensure('foo') - home.ensure('.foo') - home.join('.bar').mksymlinkto(repo.ensure('bar')) - - result = runner.invoke(cli, ['--home-directory', str(home), - '--repository', str(repo), - 'list', '--verbose']) - assert not result.exception - assert result.output == ( - '.bar (ok)\n' - '.baz (missing)\n' - '.foo (conflict)\n') - - def test_staus(self): - pass + assert result.output == '' class TestRepository(object): |