dav_events.tests: more info on a sometimes failing OneClickAction test #21

Merged
heinzel merged 2 commits from heinzel into master 2020-10-13 14:42:03 +02:00
Showing only changes of commit 28a35d98d2 - Show all commits

View File

@@ -124,8 +124,8 @@ class ActionTestCase(EmailTestMixin, RoleMixin, EventMixin, TestCase):
# Sometimes this test fail, and we cannot see the tested content, so we create our own Exception # Sometimes this test fail, and we cannot see the tested content, so we create our own Exception
try: try:
self.assertInHTML(html, content) self.assertInHTML(html, content)
except AssertionError as e: except AssertionError:
raise AssertionError('Not in HTML:\n{}\n-----\n{}\n'.format(html, content)) from e raise AssertionError('Not in HTML:\n{}\n-----\n{}\n'.format(html, content))
self.assertRegex(content, r'alert-success') self.assertRegex(content, r'alert-success')
def setUp(self): def setUp(self):