[Reproducible-commits] [diffoscope] 02/02: Add tests for skip_unless_tool_exists helper.
Chris Lamb
chris at chris-lamb.co.uk
Sun Aug 21 12:26:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit 7d8d8ea62b2d5fc6c1d1d814b9557df9ecd7c6e9
Author: Chris Lamb <lamby at debian.org>
Date: Sun Aug 21 13:25:56 2016 +0100
Add tests for skip_unless_tool_exists helper.
---
tests/comparators/test_utils.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/comparators/test_utils.py b/tests/comparators/test_utils.py
index 0341739..cefdd05 100644
--- a/tests/comparators/test_utils.py
+++ b/tests/comparators/test_utils.py
@@ -36,6 +36,14 @@ fuzzy_tar1 = load_fixture(data('fuzzy1.tar'))
fuzzy_tar2 = load_fixture(data('fuzzy2.tar'))
fuzzy_tar3 = load_fixture(data('fuzzy3.tar'))
+ at skip_unless_tool_exists()
+def test_skip_unless_tool_exists_empty():
+ assert False, "Test should always be skipped"
+
+ at skip_unless_tool_exists('/missing')
+def test_skip_unless_tool_exists_missing():
+ assert False, "Test should always be skipped"
+
@pytest.mark.skipif(miss_tlsh, reason='tlsh is missing')
def test_fuzzy_matching(fuzzy_tar1, fuzzy_tar2):
differences = fuzzy_tar1.compare(fuzzy_tar2).details
--
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