diff --git a/.ds.baseline b/.ds.baseline index 666119f50..df4be33a6 100644 --- a/.ds.baseline +++ b/.ds.baseline @@ -555,7 +555,7 @@ "filename": "tests/app/main/views/test_register.py", "hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8", "is_verified": false, - "line_number": 201, + "line_number": 200, "is_secret": false }, { @@ -563,7 +563,7 @@ "filename": "tests/app/main/views/test_register.py", "hashed_secret": "bb5b7caa27d005d38039e3797c3ddb9bcd22c3c8", "is_verified": false, - "line_number": 274, + "line_number": 273, "is_secret": false } ], @@ -684,5 +684,5 @@ } ] }, - "generated_at": "2025-01-12T22:42:11Z" + "generated_at": "2025-01-13T20:16:58Z" } diff --git a/app/main/validators.py b/app/main/validators.py index 1dfc97c48..f0f1a0db1 100644 --- a/app/main/validators.py +++ b/app/main/validators.py @@ -35,20 +35,13 @@ class CsvFileValidator: ) ) - class ValidGovEmail: def __call__(self, form, field): if field.data == "": return - from flask import url_for + message = "Enter a public sector email address." - message = """ - Enter a public sector email address or - find out who can use Notify - """.format( - url_for("main.features") - ) if not is_gov_user(field.data.lower()): raise ValidationError(message) diff --git a/app/templates/views/features.html b/app/templates/views/features.html index 8007a06e8..456f16815 100644 --- a/app/templates/views/features.html +++ b/app/templates/views/features.html @@ -11,10 +11,8 @@

Features

If you work for the government, you can use Notify.gov to keep your users updated.

-

Notify makes it easy to create, customize, and send text messages.

- +

Notify makes it easy to create, customize, and send text messages.

+

You do not need any technical knowledge to use Notify.

{% if not current_user.is_authenticated %}

Create an account for free and try it yourself.

diff --git a/app/templates/views/using-notify.html b/app/templates/views/using-notify.html index 0679229e7..d0279f446 100644 --- a/app/templates/views/using-notify.html +++ b/app/templates/views/using-notify.html @@ -21,7 +21,6 @@ diff --git a/tests/app/main/views/test_register.py b/tests/app/main/views/test_register.py index b3d70deb5..df47524f7 100644 --- a/tests/app/main/views/test_register.py +++ b/tests/app/main/views/test_register.py @@ -148,7 +148,6 @@ def test_should_return_200_when_email_is_not_gov_uk( "Enter a public sector email address or find out who can use Notify" in normalize_spaces(page.select_one(".usa-error-message").text) ) - assert page.select_one(".usa-error-message a")["href"] == url_for("main.features") @pytest.mark.parametrize(