[Erp5-report] r28146 - /erp5/trunk/products/ERP5/tests/testBPMCore.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jul 22 17:22:51 CEST 2009


Author: luke
Date: Wed Jul 22 17:22:49 2009
New Revision: 28146

URL: http://svn.erp5.org?rev=28146&view=rev
Log:
 - set default methods for any business path created in test

Modified:
    erp5/trunk/products/ERP5/tests/testBPMCore.py

Modified: erp5/trunk/products/ERP5/tests/testBPMCore.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBPMCore.py?rev=28146&r1=28145&r2=28146&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBPMCore.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBPMCore.py [utf8] Wed Jul 22 17:22:49 2009
@@ -82,6 +82,10 @@
   def createBusinessPath(self, business_process=None, **kw):
     if business_process is None:
       business_process = self.createBusinessProcess()
+    kw['destination_method_id'] = kw.pop('destination_method_id',
+        'BusinessPath_getDefaultDestinationList')
+    kw['source_method_id'] = kw.pop('source_method_id',
+        'BusinessPath_getDefaultSourceList')
     business_path = business_process.newContent(
       portal_type=self.business_path_portal_type, **kw)
     return business_path




More information about the Erp5-report mailing list