[diffoscope] 02/05: Check rendering of text and HTML presenters when checking non-existing files.

Chris Lamb chris at chris-lamb.co.uk
Sun Aug 21 00:51:07 CEST 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 03a56a2378225c337f9a85b9042f2d1297670df8
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Aug 20 23:26:13 2016 +0100

    Check rendering of text and HTML presenters when checking non-existing files.
---
 tests/comparators/utils.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/comparators/utils.py b/tests/comparators/utils.py
index 64502d8..cfe89d0 100644
--- a/tests/comparators/utils.py
+++ b/tests/comparators/utils.py
@@ -27,6 +27,8 @@ from distutils.version import StrictVersion
 
 from diffoscope.config import Config
 from diffoscope.comparators import specialize
+from diffoscope.presenters.html import output_html
+from diffoscope.presenters.text import output_text
 from diffoscope.comparators.binary import FilesystemFile, NonExistingFile
 
 
@@ -63,6 +65,9 @@ def assert_non_existing(monkeypatch, fixture, has_null_source=True, has_details=
 
     difference = fixture.compare(NonExistingFile('/nonexisting', fixture))
 
+    output_html(difference, print_func=print)
+    output_text(difference, print_func=print)
+
     assert difference.source2 == '/nonexisting'
     assert not has_details or len(difference.details) > 0
     assert not has_null_source or difference.details[-1].source2 == '/dev/null'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list