Skip to content

Commit aa61123

Browse files
committed
Modified a few tests to handle the improved handling of error messages (not conflating them with help text any more).
- Legacy-Id: 11181
1 parent 7e61ce8 commit aa61123

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/liaisons/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ def test_liaison_add_attachment(self):
944944
r = self.client.post(url,post_data)
945945
if r.status_code != 302:
946946
q = PyQuery(r.content)
947-
print(q('div.has-error span.help-block div').text())
947+
print(q('div.has-error div.alert').text())
948948
print r.content
949949
self.assertEqual(r.status_code, 302)
950950
self.assertEqual(liaison.attachments.count(),2)

ietf/submit/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def do_submission(self, name, rev, group=None, formats=["txt",]):
108108
r = self.client.post(url, files)
109109
if r.status_code != 302:
110110
q = PyQuery(r.content)
111-
print(q('div.has-error span.help-block div').text)
111+
print(q('div.has-error div.alert').text)
112112

113113
self.assertEqual(r.status_code, 302)
114114

@@ -785,7 +785,7 @@ def submit_bad_file(self, name, formats):
785785
self.assertEqual(r.status_code, 200)
786786
q = PyQuery(r.content)
787787
self.assertTrue(len(q("form .has-error")) > 0)
788-
m = q('div.has-error span.help-block').text()
788+
m = q('div.has-error div.alert').text()
789789

790790
return r, q, m
791791

0 commit comments

Comments
 (0)