[Git][reproducible-builds/diffoscope][master] Don't exhaustively output the entire HTML report when testing the regression...

Chris Lamb gitlab at salsa.debian.org
Wed Jan 8 15:58:27 UTC 2020



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
94e5e07d by Chris Lamb at 2020-01-08T15:58:00+00:00
Don't exhaustively output the entire HTML report when testing the regression for #875281; parsing the JSON and pruning the tree should be enough. (Closes: reproducible-builds/diffoscope#84)

- - - - -


1 changed file:

- tests/test_presenters.py


Changes:

=====================================
tests/test_presenters.py
=====================================
@@ -184,10 +184,11 @@ def test_html_option_with_stdout(capsys):
 
 
 def test_html_regression_875281(tmpdir, capsys):
-    # this test fails when you `git revert -Xtheirs ccd926f`
     diff_path = expand_collapsed_json(tmpdir, 'debian-bug-875281')
     report_path = str(tmpdir.join('report.html'))
-    out = run(capsys, '--html', report_path, pair=(diff_path,))
+    out = run(
+        capsys, '--html', report_path, '--max-page-size=5000', pair=(diff_path,)
+    )
     assert out == ''
 
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/94e5e07db8b61e7e844f4c10c4b831a992dd3172

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/commit/94e5e07db8b61e7e844f4c10c4b831a992dd3172
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20200108/e4c067af/attachment.htm>


More information about the rb-commits mailing list