diff --git a/tildes/tests/test_simplestring_field.py b/tildes/tests/test_simplestring_field.py index 4d3b0ea..ffdcf9f 100644 --- a/tildes/tests/test_simplestring_field.py +++ b/tildes/tests/test_simplestring_field.py @@ -99,3 +99,8 @@ def test_consecutive_spaces_collapsed(): """Ensure runs of consecutive spaces are "collapsed" inside the string.""" original = "I wanted to space this out" assert process_string(original) == "I wanted to space this out" + + +def test_unicode_15_moose_kept(): + """Ensure newer emoji introduced in Unicode 15 are kept.""" + assert process_string("🫎") == "🫎" diff --git a/tildes/tests/test_string.py b/tildes/tests/test_string.py index 9245a88..d2eb99d 100644 --- a/tildes/tests/test_string.py +++ b/tildes/tests/test_string.py @@ -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 = "

Hide me!

" 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("🫎") == "🫎"