Modified a few tests to handle the improved handling of error messages (not conflating them with help text any more).
- Legacy-Id: 11181
This commit is contained in:
parent
7e61ce84e8
commit
aa61123937
|
@ -944,7 +944,7 @@ class LiaisonManagementTests(TestCase):
|
|||
r = self.client.post(url,post_data)
|
||||
if r.status_code != 302:
|
||||
q = PyQuery(r.content)
|
||||
print(q('div.has-error span.help-block div').text())
|
||||
print(q('div.has-error div.alert').text())
|
||||
print r.content
|
||||
self.assertEqual(r.status_code, 302)
|
||||
self.assertEqual(liaison.attachments.count(),2)
|
||||
|
|
|
@ -108,7 +108,7 @@ class SubmitTests(TestCase):
|
|||
r = self.client.post(url, files)
|
||||
if r.status_code != 302:
|
||||
q = PyQuery(r.content)
|
||||
print(q('div.has-error span.help-block div').text)
|
||||
print(q('div.has-error div.alert').text)
|
||||
|
||||
self.assertEqual(r.status_code, 302)
|
||||
|
||||
|
@ -785,7 +785,7 @@ class SubmitTests(TestCase):
|
|||
self.assertEqual(r.status_code, 200)
|
||||
q = PyQuery(r.content)
|
||||
self.assertTrue(len(q("form .has-error")) > 0)
|
||||
m = q('div.has-error span.help-block').text()
|
||||
m = q('div.has-error div.alert').text()
|
||||
|
||||
return r, q, m
|
||||
|
||||
|
|
Loading…
Reference in a new issue