Commit bb552e15 authored by Jérome Perrin's avatar Jérome Perrin

metadata discovery on CRM email ingestion needs erp5_dms_mysql_innodb_catalog

to be able to search email addresses. Also metadata discovery is done in an
activity, so we have to commit and tic before checking anything.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17879 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent aa545390
......@@ -35,7 +35,8 @@ class TestCRMMailIngestion(ERP5TypeTestCase):
"""
def getBusinessTemplateList(self):
return ('erp5_base', 'erp5_web', 'erp5_dms', 'erp5_crm')
return ('erp5_base', 'erp5_web', 'erp5_dms',
'erp5_dms_mysql_innodb_catalog', 'erp5_crm')
def afterSetUp(self):
portal = self.portal
......@@ -124,16 +125,20 @@ class TestCRMMailIngestion(ERP5TypeTestCase):
event = self._ingestMail('simple')
self.assertEquals('Hello,\nContent of the mail.\n', str(event.asText()))
# not working ? a script seems missing
## def test_sender(self):
## # source is found automatically, based on the From: header in the mail
## event = self._ingestMail('simple')
## self.assertEquals('person_module/sender', event.getSource())
##
## def test_recipient(self):
## # destination is found automatically, based on the To: header in the mail
## event = self._ingestMail('simple')
## self.assertEquals('person_module/me', event.getDestination())
def test_sender(self):
# source is found automatically, based on the From: header in the mail
event = self._ingestMail('simple')
# metadata discovery is done in an activity
get_transaction().commit()
self.tic()
self.assertEquals('person_module/sender', event.getSource())
def test_recipient(self):
# destination is found automatically, based on the To: header in the mail
event = self._ingestMail('simple')
get_transaction().commit()
self.tic()
self.assertEquals('person_module/me', event.getDestination())
## TODO:
## def test_forwarder_mail(self):
......
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