Skip to content

Commit

Permalink
Fix incorrect html in one of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kpot committed Oct 18, 2022
1 parent 1225abc commit 82157c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_textile.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def test_endnotes_malformed():
def test_endnotes_undefined_note():
test = """Scientists say the moon is slowly shrinking[#my_first_label].\n\nnotelist!."""
html = textile.textile(test)
result_pattern = r"""\t<p>Scientists say the moon is slowly shrinking<sup><a href="#note([a-f0-9]{32})-2"><span id="noteref\1-1">1</span></a></sup>.</p>\n\n\t<ol>\n\t\t<li> Undefined Note \[#my_first_label\].<li>\n\t</ol>$"""
result_pattern = r"""\t<p>Scientists say the moon is slowly shrinking<sup><a href="#note([a-f0-9]{32})-2"><span id="noteref\1-1">1</span></a></sup>.</p>\n\n\t<ol>\n\t\t<li> Undefined Note \[#my_first_label\].</li>\n\t</ol>$"""
result_re = re.compile(result_pattern)
assert result_re.search(html) is not None

Expand Down

0 comments on commit 82157c7

Please sign in to comment.