Skip to content

Commit 55d3bee

Browse files
fix(bleach-to-nh3): update os_message test assertion for nh3 link output
nh3 adds rel="noopener noreferrer" to links; update assertion to match. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4f8197a commit 55d3bee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unittests/test_os_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_headline_inline_markdown(self):
4343
text = "# Read the **release notes** at [link](https://example.com)\n"
4444
result = os_message.parse_os_message(text)
4545
self.assertIn("<strong>release notes</strong>", result["message"])
46-
self.assertIn('<a href="https://example.com">link</a>', result["message"])
46+
self.assertIn('<a href="https://example.com" rel="noopener noreferrer">link</a>', result["message"])
4747
self.assertIsNone(result["expanded_html"])
4848

4949
def test_headline_strips_disallowed_html(self):

0 commit comments

Comments
 (0)