forked from beba/foerderbarometer
replace regex assertion and remove status code check in test_extern_lit
This commit is contained in:
parent
ed2db04309
commit
6585eeaf78
|
|
@ -158,9 +158,5 @@ class TermsConsentViewTests(AnonymousViewTestCase):
|
||||||
resp = request(self, 'extern', data=payload)
|
resp = request(self, 'extern', data=payload)
|
||||||
|
|
||||||
# Expect to remain on step 2 with required field error
|
# Expect to remain on step 2 with required field error
|
||||||
self.assertEqual(resp.status_code, 200)
|
|
||||||
self.assertNotContains(resp, 'Deine Anfrage wurde gesendet.')
|
self.assertNotContains(resp, 'Deine Anfrage wurde gesendet.')
|
||||||
self.assertRegex(
|
self.assertContains(resp, 'Dieses Feld ist zwingend erforderlich.')
|
||||||
resp.content.decode(),
|
|
||||||
r'(Dieses Feld ist erforderlich|This field is required\.)'
|
|
||||||
)
|
|
||||||
Loading…
Reference in New Issue