This commit is contained in:
Kenneth Kehl
2025-03-31 08:45:33 -07:00
parent 5741c572f0
commit 7cd8be22f6
13 changed files with 322 additions and 313 deletions

View File

@@ -20,7 +20,7 @@ class ExampleFormSpecialField(Form):
"""
\t bar
""",
" \u180E\u200B \u200C bar \u200D \u2060\uFEFF ",
" \u180e\u200b \u200c bar \u200d \u2060\ufeff ",
],
)
@pytest.mark.parametrize(

View File

@@ -60,7 +60,7 @@ def test_for_commas_in_placeholders(
NoCommasInPlaceHolders()(None, _gen_mock_field("Hello ((name))"))
@pytest.mark.parametrize("msg", ["The quick brown fox", "Thé “quick” bröwn fox\u200B"])
@pytest.mark.parametrize("msg", ["The quick brown fox", "Thé “quick” bröwn fox\u200b"])
def test_sms_character_validation(client_request, msg):
OnlySMSCharacters(template_type="sms")(None, _gen_mock_field(msg))

View File

@@ -635,7 +635,7 @@ def test_should_show_sms_template_with_downgraded_unicode_characters(
mock_get_template_folders,
fake_uuid,
):
msg = "here:\tare some “fancy quotes” and zero\u200Bwidth\u200Bspaces"
msg = "here:\tare some “fancy quotes” and zero\u200bwidth\u200bspaces"
rendered_msg = "here: are some “fancy quotes” and zerowidthspaces"
mocker.patch(
@@ -1846,7 +1846,7 @@ def test_should_create_sms_template_without_downgrading_unicode_characters(
):
service_one["permissions"] += [template_type]
msg = "here:\tare some “fancy quotes” and non\u200Bbreaking\u200Bspaces"
msg = "here:\tare some “fancy quotes” and non\u200bbreaking\u200bspaces"
client_request.post(
".add_service_template",