fix: 🐞 test_mixed_formats to correctly assert all URLs in mixed format string (#677)

Signed-off-by: Onuralp SEZER <[email protected]>
This commit is contained in:
Onuralp SEZER
2025-12-03 00:28:36 +03:00
committed by GitHub
parent df5231762d
commit 77f66891b8
+1 -1
View File
@@ -81,7 +81,7 @@ def test_mixed_formats(verbose):
text = "A <a href='https://1.com'>link</a> and [markdown](https://2.org/) and https://3.net"
result, urls = check_links_in_string(text, verbose, return_bad=True)
assert result is False
assert set(urls) == {"https://1.com", "https://3.net"}
assert set(urls) == {"https://1.com", "https://2.org/", "https://3.net"}
def test_duplicate_urls(verbose):