replace regex assertion and remove status code check in test_extern_lit

This commit is contained in:
Roman 2025-09-01 11:42:20 +02:00
parent ed2db04309
commit 6585eeaf78
1 changed files with 1 additions and 5 deletions

View File

@ -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.')