Commit 5cff0e99 authored by Romain Courteaud's avatar Romain Courteaud

[ERP5OOo] Stabilize testDeferredStyle

Reset mailhost before each test.

Commit changes created by portal_transforms.
parent 8c3c1fde
...@@ -70,6 +70,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -70,6 +70,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
if not self.skin: if not self.skin:
raise NotImplementedError('Subclasses must define skin') raise NotImplementedError('Subclasses must define skin')
self.portal.MailHost.reset()
person_module = self.portal.person_module person_module = self.portal.person_module
if person_module._getOb('pers', None) is None: if person_module._getOb('pers', None) is None:
person = person_module.newContent(id='pers', portal_type='Person', person = person_module.newContent(id='pers', portal_type='Person',
...@@ -350,6 +351,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -350,6 +351,7 @@ class TestDeferredStyle(ERP5TypeTestCase, ZopeTestCase.Functional):
part.get_payload(decode=True), part.get_payload(decode=True),
context=self.portal, context=self.portal,
mimetype=self.content_type).getData()) mimetype=self.content_type).getData())
self.tic()
......
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