[Erp5-report] r17879 - /erp5/trunk/products/ERP5/tests/testCRM.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Nov 28 17:05:53 CET 2007
Author: jerome
Date: Wed Nov 28 17:05:52 2007
New Revision: 17879
URL: http://svn.erp5.org?rev=17879&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5/tests/testCRM.py
Modified: erp5/trunk/products/ERP5/tests/testCRM.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testCRM.py?rev=17879&r1=17878&r2=17879&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testCRM.py (original)
+++ erp5/trunk/products/ERP5/tests/testCRM.py Wed Nov 28 17:05:52 2007
@@ -35,7 +35,8 @@
"""
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 @@
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):
More information about the Erp5-report
mailing list