Skip to content

Commit

Permalink
more lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukewh committed Nov 21, 2023
1 parent ed814cb commit e2f3d5a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ def test_parser_upload(self):
{
"id": 11,
"cooked": (
"<a href='/uploads/test.png'><img src='test.png' srcset='test.png' /></a>"
"<a href='/uploads/test.png'>"
"<img src='test.png' srcset='test.png' />"
"</a>"
"<a>No Link</a>"
"<a></a>"
),
Expand All @@ -138,7 +140,11 @@ def test_parser_upload(self):
)

self.assertIn(
'<a href="https://base.url/uploads/test.png"><img src="test.png"/></a>',
(
'<a href="https://base.url/uploads/test.png">'
'<img src="test.png"/>'
"</a>"
),
parsed_topic["body_html"],
)

Expand Down

0 comments on commit e2f3d5a

Please sign in to comment.