Skip to content

Commit

Permalink
Re-comment regeneration command
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Li <[email protected]>
  • Loading branch information
joshmoore and manics authored Jun 3, 2020
1 parent 3a9fe6f commit 219d9e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 219d9e7

Please sign in to comment.