From 5cff0e9998f3abb22007caca5fbdb339edbaa292 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Tue, 24 Sep 2019 12:03:23 +0200 Subject: [PATCH] [ERP5OOo] Stabilize testDeferredStyle Reset mailhost before each test. Commit changes created by portal_transforms. --- product/ERP5OOo/tests/testDeferredStyle.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5OOo/tests/testDeferredStyle.py b/product/ERP5OOo/tests/testDeferredStyle.py index c5f7da6813..f54ae2b725 100644 --- a/product/ERP5OOo/tests/testDeferredStyle.py +++ b/product/ERP5OOo/tests/testDeferredStyle.py @@ -70,6 +70,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): if not self.skin: raise NotImplementedError('Subclasses must define skin') + self.portal.MailHost.reset() person_module = self.portal.person_module if person_module._getOb('pers', None) is None: person = person_module.newContent(id='pers', portal_type='Person', @@ -350,6 +351,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): part.get_payload(decode=True), context=self.portal, mimetype=self.content_type).getData()) + self.tic() -- 2.30.9