Commit a6bb0ffa authored by Łukasz Nowak's avatar Łukasz Nowak

- allow **kw and use them as initial dictionary while creating document


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28248 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 424edbc3
......@@ -73,10 +73,11 @@ class TestBPMMixin(ERP5TypeTestCase):
['accounting', 'delivery', 'invoicing', 'discount', 'tax', 'payment'])
@reindex
def createBusinessProcess(self):
def createBusinessProcess(self, **kw):
module = self.portal.getDefaultModule(
portal_type=self.business_process_portal_type)
return module.newContent(portal_type=self.business_process_portal_type)
return module.newContent(portal_type=self.business_process_portal_type,
**kw)
@reindex
def createBusinessPath(self, business_process=None, **kw):
......
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