mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-18 13:39:57 -04:00
fix
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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))
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user