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,7 +381,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -381,7 +381,7 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
"""Replace Original Mail Host by Dummy Mail Host in a non-persistent way """Replace Original Mail Host by Dummy Mail Host in a non-persistent way
""" """
cls = self.portal.MailHost.__class__ cls = self.portal.MailHost.__class__
assert not issubclass(cls, DummyMailHostMixin) if not issubclass(cls, DummyMailHostMixin):
cls.__bases__ = (DummyMailHostMixin,) + cls.__bases__ cls.__bases__ = (DummyMailHostMixin,) + cls.__bases__
pmc_init_of(cls) pmc_init_of(cls)
......
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