mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
1134 - Changing all instances of the word "brackets" to "parenthesis"
This commit is contained in:
@@ -56,7 +56,7 @@ def test_for_commas_in_placeholders(
|
||||
):
|
||||
with pytest.raises(ValidationError) as error:
|
||||
NoCommasInPlaceHolders()(None, _gen_mock_field("Hello ((name,date))"))
|
||||
assert str(error.value) == "You cannot put commas between double brackets"
|
||||
assert str(error.value) == "You cannot put commas between double parenthesis"
|
||||
NoCommasInPlaceHolders()(None, _gen_mock_field("Hello ((name))"))
|
||||
|
||||
|
||||
|
||||
@@ -775,7 +775,7 @@ def test_upload_csv_file_with_very_long_placeholder_shows_check_page_with_errors
|
||||
+12028675109
|
||||
""",
|
||||
(
|
||||
"Your column names need to match the double brackets in your template "
|
||||
"Your column names need to match the double parenthesis in your template "
|
||||
"Your file is missing a column called ‘name’."
|
||||
),
|
||||
),
|
||||
|
||||
@@ -1748,7 +1748,12 @@ def test_can_create_email_template_with_emoji(
|
||||
@pytest.mark.parametrize(
|
||||
("template_type", "expected_error"),
|
||||
[
|
||||
("sms", ("Please remove the unaccepted character 🍜 in your message, then save again")),
|
||||
(
|
||||
"sms",
|
||||
(
|
||||
"Please remove the unaccepted character 🍜 in your message, then save again"
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_should_not_create_sms_template_with_emoji(
|
||||
@@ -1773,14 +1778,21 @@ def test_should_not_create_sms_template_with_emoji(
|
||||
_expected_status=200,
|
||||
)
|
||||
# print(page.main.prettify())
|
||||
assert expected_error in normalize_spaces(page.select_one("#template_content-error").text)
|
||||
assert expected_error in normalize_spaces(
|
||||
page.select_one("#template_content-error").text
|
||||
)
|
||||
assert mock_create_service_template.called is False
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
("template_type", "expected_error"),
|
||||
[
|
||||
("sms", ("Please remove the unaccepted character 🍔 in your message, then save again")),
|
||||
(
|
||||
"sms",
|
||||
(
|
||||
"Please remove the unaccepted character 🍔 in your message, then save again"
|
||||
),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_should_not_update_sms_template_with_emoji(
|
||||
|
||||
Reference in New Issue
Block a user