Commit 5bfd29fa authored by Łukasz Nowak's avatar Łukasz Nowak

- set default methods for any business path created in test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28146 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 19304ac2
...@@ -82,6 +82,10 @@ class TestBPMMixin(ERP5TypeTestCase): ...@@ -82,6 +82,10 @@ class TestBPMMixin(ERP5TypeTestCase):
def createBusinessPath(self, business_process=None, **kw): def createBusinessPath(self, business_process=None, **kw):
if business_process is None: if business_process is None:
business_process = self.createBusinessProcess() 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( business_path = business_process.newContent(
portal_type=self.business_path_portal_type, **kw) portal_type=self.business_path_portal_type, **kw)
return business_path return business_path
......
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