Commit a90f800f authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_interface_post: update tests

parent ff1f8b81
......@@ -29,7 +29,6 @@ import time
from Products.ERP5Type.tests.ERP5TypeLiveTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.utils import createZODBPythonScript, removeZODBPythonScript
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery
from DateTime import DateTime
......@@ -83,12 +82,6 @@ class TestInterfacePost(ERP5TypeTestCase):
self.recipient_list = [self.recipient,]
def beforeTearDown(self):
if hasattr(self.portal.portal_skins.custom, "LetterPost_export"):
removeZODBPythonScript(
self.portal.portal_skins.custom,
"LetterPost_export"
)
for module_id in ('event_module', 'internet_message_post_module', 'letter_post_module'):
module = getattr(self.portal, module_id)
module.manage_delObjects(list(module.objectIds()))
......@@ -107,14 +100,6 @@ class TestInterfacePost(ERP5TypeTestCase):
else:
return result_list
def stepAllowAutoExportOfLetters(self, sequence=None, sequence_list=None):
createZODBPythonScript(
self.portal.portal_skins.custom,
"LetterPost_export",
"",
"context.export()",
)
def _stepCreateEvent(self, portal_type, sequence=None, sequence_list=None):
event = self.portal.event_module.newContent(
portal_type=portal_type,
......
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