From 335fc47a2c74bb1b1fc6891abe17499258546c35 Mon Sep 17 00:00:00 2001 From: "mark.j0hnst0n" Date: Fri, 14 Feb 2025 09:09:25 +0000 Subject: [PATCH] check all of form errors data in test --- .../additional_information/tests/test_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exporter/f680/application_sections/additional_information/tests/test_views.py b/exporter/f680/application_sections/additional_information/tests/test_views.py index 8f131b745..60fb1eba0 100644 --- a/exporter/f680/application_sections/additional_information/tests/test_views.py +++ b/exporter/f680/application_sections/additional_information/tests/test_views.py @@ -139,7 +139,7 @@ def test_POST_to_step_validation_error( {}, ) assert response.status_code == 200 - assert "This field is required." in response.context["form"]["note"].errors + assert response.context["form"]["note"].errors == ["This field is required."] def test_GET_with_existing_data_success( self,