[diffoscope] 03/04: tests: skip visual test if tools aren't installed. (Closes: #865625)
Ximin Luo
infinity0 at debian.org
Fri Jul 7 15:05:57 CEST 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository diffoscope.
commit ffc92fc0c9fe2c5882be1edc6432bf7fe3e68f45
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Jul 7 15:00:54 2017 +0200
tests: skip visual test if tools aren't installed. (Closes: #865625)
---
tests/test_presenters.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/test_presenters.py b/tests/test_presenters.py
index 85e9d17..12d1950 100644
--- a/tests/test_presenters.py
+++ b/tests/test_presenters.py
@@ -25,6 +25,7 @@ from diffoscope.main import main
from diffoscope.presenters.utils import create_limited_print_func, PrintLimitReached, PartialString
from .utils.data import cwd_data, get_data
+from .utils.tools import skip_unless_tools_exist
re_html = re.compile(r'.*<body(?P<body>.*)<div class="footer">', re.MULTILINE | re.DOTALL)
@@ -114,6 +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')
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