From dd4ab81a8d0db9825d0efc40c5a3c1076c45147a Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 17 Sep 2025 08:25:29 -0700 Subject: [PATCH] fix --- .../test_template_types.py | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/tests/notifications_utils/test_template_types.py b/tests/notifications_utils/test_template_types.py index 9704f4fa1..0dfed8f06 100644 --- a/tests/notifications_utils/test_template_types.py +++ b/tests/notifications_utils/test_template_types.py @@ -134,28 +134,6 @@ def test_default_template(content): ) -@pytest.mark.parametrize("show_banner", [True, False]) -def test_govuk_banner(show_banner): - email = HTMLEmailTemplate( - { - "content": "hello world", - "subject": "", - "template_type": "email", - } - ) - email.govuk_banner = show_banner - - # CodeQL doesn't like the commented out tests for some reason, - # so replace them with the much more fragile index check. - if show_banner: - assert str(email).find("beta.notify.gov") == 1817 - # assert "beta.notify.gov" in str(email) - else: - assert str(email).find("beta.notify.gov") == -1 - - # assert "beta.notify.gov" not in str(email) - - def test_brand_banner_shows(): email = str( HTMLEmailTemplate(