[Reproducible-commits] [diffoscope] 05/13: Add a test for --list-tools
Jérémy Bobbio
lunar at moszumanska.debian.org
Thu Oct 15 16:04:34 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit b3df430054495d52afbb3ba310c6ce8a61bafbc1
Author: Jérémy Bobbio <lunar at debian.org>
Date: Thu Oct 15 10:03:09 2015 +0000
Add a test for --list-tools
---
tests/test_main.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/tests/test_main.py b/tests/test_main.py
index c3f6ccb..dc275be 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -151,3 +151,13 @@ def test_no_differences(capsys):
out, err = capsys.readouterr()
assert err == ''
assert out == ''
+
+def test_list_tools(capsys):
+ args = ['--list-tools']
+ with pytest.raises(SystemExit) as excinfo:
+ main(args)
+ assert excinfo.value.code == 0
+ out, err = capsys.readouterr()
+ assert err == ''
+ assert 'External tools required:' in out
+ assert 'xxd,' in out
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list