Commit b0d9c05c authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

erp5_workflow_test_data: fix the definition of doActionFor.

parent e13eede3
...@@ -230,7 +230,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin): ...@@ -230,7 +230,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
return getattr(document, 'getValidationState')() return getattr(document, 'getValidationState')()
def doActionFor(self, document, action): def doActionFor(self, document, action):
user_action = '_'.join(action.split('_')[0:-1]) + '_action' # remove suffix user_action = action + '_action'
self.portal.portal_workflow.doActionFor(document, user_action, wf_id = 'workflow_testing_workflow') self.portal.portal_workflow.doActionFor(document, user_action, wf_id = 'workflow_testing_workflow')
class TestDCWorkflow(TestERP5WorkflowMixin): class TestDCWorkflow(TestERP5WorkflowMixin):
......
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