[Erp5-report] r19522 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 26 16:18:31 CET 2008


Author: seb
Date: Tue Feb 26 16:18:28 2008
New Revision: 19522

URL: http://svn.erp5.org?rev=19522&view=rev
Log:
if the sql worklist bt is not installed, the test should still work

Modified:
    erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=19522&r1=19521&r2=19522&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py Tue Feb 26 16:18:28 2008
@@ -1150,7 +1150,12 @@
     """
     portal = self.getPortalObject()
     portal.portal_caches.clearAllCache()
-    portal.portal_workflow.refreshWorklistCache()
+    try:
+      portal.portal_workflow.refreshWorklistCache()
+    except AttributeError:
+      import sys
+      LOG('TestEERP5Banking.checkWorklist', 0, 'unable to find everything to refresh',
+             error=sys.exc_info())
     portal_type = document.getPortalType()
     state = document.getSimulationState()
     workflow_id = '%s_workflow' % portal_type.lower().replace(' ', '_')




More information about the Erp5-report mailing list