[diffoscope] 01/01: tests: presenters: skip html_visuals test if 'sng' binary is not available
Juliana Oliveira R
jwnx-guest at moszumanska.debian.org
Thu Sep 7 13:45:33 CEST 2017
This is an automated email from the git hooks/post-receive script.
jwnx-guest pushed a commit to branch master
in repository diffoscope.
commit 97f074f7c94dcfcdea8bcacbadcdab28975f8142
Author: Juliana Oliveira Rodrigues <juliana.orod at gmail.com>
Date: Thu Sep 7 08:36:16 2017 -0300
tests: presenters: skip html_visuals test if 'sng' binary is not available
The test_html_visuals tries to compare an output generated by sng
package to a string. When 'sng' is not available, this test falls back
to binary comparison and thus, not matching the given string. This
patch adds the presence of 'sng' as condition to run the test.
---
tests/test_presenters.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_presenters.py b/tests/test_presenters.py
index 12d1950..2443bfb 100644
--- a/tests/test_presenters.py
+++ b/tests/test_presenters.py
@@ -115,7 +115,7 @@ def test_html_option_with_file(tmpdir, capsys):
body = extract_body(f.read())
assert body.count('div class="difference"') == 4
- at skip_unless_tools_exist('compare', 'convert')
+ at skip_unless_tools_exist('compare', 'convert', 'sng')
def test_html_visuals(tmpdir, capsys):
report_path = str(tmpdir.join('report.html'))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list