upgrade mistune to 3.1.3

This commit is contained in:
Kenneth Kehl
2025-03-26 09:16:07 -07:00
parent 96c033cd6f
commit 0108bcf91f
7 changed files with 407 additions and 632 deletions

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(