Merge pull request 'dav_events.tests: more info on a sometimes failing OneClickAction test' (#21) from heinzel into master
All checks were successful
buildbot/tox Build done.
All checks were successful
buildbot/tox Build done.
Reviewed-on: #21
This commit was merged in pull request #21.
This commit is contained in:
@@ -121,7 +121,11 @@ class ActionTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
|
||||
'user': user.get_full_name(),
|
||||
})
|
||||
html = message.replace('\'', ''')
|
||||
self.assertInHTML(html, content)
|
||||
# Sometimes this test fail, and we cannot see the tested content, so we create our own Exception
|
||||
try:
|
||||
self.assertInHTML(html, content)
|
||||
except AssertionError:
|
||||
raise AssertionError('Not in HTML:\n{}\n-----\n{}\n'.format(html, content))
|
||||
self.assertRegex(content, r'alert-success')
|
||||
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user