From 6585eeaf78bf115050df0eeb3891cf37ad12b0ea Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 1 Sep 2025 11:42:20 +0200 Subject: [PATCH] replace regex assertion and remove status code check in test_extern_lit --- input/tests/views.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/input/tests/views.py b/input/tests/views.py index 9bd961d..4cbd3a5 100644 --- a/input/tests/views.py +++ b/input/tests/views.py @@ -158,9 +158,5 @@ class TermsConsentViewTests(AnonymousViewTestCase): resp = request(self, 'extern', data=payload) # Expect to remain on step 2 with required field error - self.assertEqual(resp.status_code, 200) self.assertNotContains(resp, 'Deine Anfrage wurde gesendet.') - self.assertRegex( - resp.content.decode(), - r'(Dieses Feld ist erforderlich|This field is required\.)' - ) + self.assertContains(resp, 'Dieses Feld ist zwingend erforderlich.') \ No newline at end of file