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
2 people authored and knabar committed May 7, 2024
1 parent c124237 commit 06b0073
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 @@ -159,7 +159,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 06b0073

Please sign in to comment.