From 219d9e721304a4c46b4d73ef9ff3777549d69615 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Wed, 3 Jun 2020 10:30:23 +0200 Subject: [PATCH] Re-comment regeneration command Co-authored-by: Simon Li --- test/unit/test_web.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/test_web.py b/test/unit/test_web.py index a14b783bc1..570414c007 100644 --- a/test/unit/test_web.py +++ b/test/unit/test_web.py @@ -161,7 +161,8 @@ def normalise_generated(self, s): def compare_with_reference(self, refname, generated): reffile = path(__file__).dirname() / 'reference_templates' / refname generated = generated.split('\n') - reffile.write_lines(generated) + # Temporarily uncomment the following line to regenerate the templates + # reffile.write_lines(generated) ref = reffile.lines(retain=False) d = '\n'.join(unified_diff(ref, generated)) return d