|
|
|
@ -8,7 +8,6 @@ from tildes.lib.string import ( |
|
|
|
truncate_string_at_char, |
|
|
|
word_count, |
|
|
|
extract_text_from_html, |
|
|
|
_sanitize_characters, |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@ -174,8 +173,3 @@ def test_extract_text_from_html_exclude_details(): |
|
|
|
html = "<details><p>Hide me!</p></details>" |
|
|
|
text = extract_text_from_html(html, exclude_details_include_summary=True) |
|
|
|
assert text == "Details" |
|
|
|
|
|
|
|
|
|
|
|
def test_sanitize_characters_keeps_unicode_15_moose(): |
|
|
|
"""Ensure _sanitize_characters keeps a newer emoji introduced in Unicode 15.""" |
|
|
|
assert _sanitize_characters("🫎") == "🫎" |