1134 - Changing all instances of the word "brackets" to "parenthesis"

This commit is contained in:
Jonathan Bobel
2025-03-20 10:29:29 -04:00
parent a5ddf8038b
commit fe098eca22
20 changed files with 92 additions and 69 deletions

View File

@@ -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))"))

View File

@@ -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."
),
),

View File

@@ -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(