Fix the previous change
All checks were successful
buildbot/tox Build done.

This commit is contained in:
2020-10-13 14:05:44 +02:00
parent e44cff343f
commit 28a35d98d2

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
try:
self.assertInHTML(html, content)
except AssertionError as e:
raise AssertionError('Not in HTML:\n{}\n-----\n{}\n'.format(html, content)) from e
except AssertionError:
raise AssertionError('Not in HTML:\n{}\n-----\n{}\n'.format(html, content))
self.assertRegex(content, r'alert-success')
def setUp(self):