Commit d86245bb authored by Sebastien Robin's avatar Sebastien Robin

do less strick check if MailHost is already patched, this avoid useless error in live tests

parent 4e0fa615
......@@ -381,9 +381,9 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
"""Replace Original Mail Host by Dummy Mail Host in a non-persistent way
"""
cls = self.portal.MailHost.__class__
assert not issubclass(cls, DummyMailHostMixin)
cls.__bases__ = (DummyMailHostMixin,) + cls.__bases__
pmc_init_of(cls)
if not issubclass(cls, DummyMailHostMixin):
cls.__bases__ = (DummyMailHostMixin,) + cls.__bases__
pmc_init_of(cls)
def _restoreMailHost(self):
"""Restore original Mail Host
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment