Commit 06fbc7e8 authored by wenjie.zheng's avatar wenjie.zheng

erp5_workflow_test_data: Correct the invalidate_action_url format; in live...

erp5_workflow_test_data: Correct the invalidate_action_url format; in live test, use protal_worflow.doActionFor() to test its compatiblity in both testERP5Workflow and testDCWorkflow cases.
parent 0644d290
...@@ -14,15 +14,11 @@ ...@@ -14,15 +14,11 @@
</item> </item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <value> <string>Failure</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=fail_action</string> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>after_script_id</string> </key> <key> <string>after_script_id</string> </key>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</item> </item>
<item> <item>
<key> <string>actbox_url</string> </key> <key> <string>actbox_url</string> </key>
<value> <string>python:${object_url}/Base_viewWorkflowActionDialog?workflow_action=invalidate_action</string> </value> <value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=invalidate_action</string> </value>
</item> </item>
<item> <item>
<key> <string>after_script_id</string> </key> <key> <string>after_script_id</string> </key>
......
...@@ -125,7 +125,8 @@ class TestERP5Workflow(TestERP5WorkflowMixin): ...@@ -125,7 +125,8 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
self.assertFalse('testing_workflow' in self.getWorkflowTool().getChainFor(document.getTypeInfo().getId())) self.assertFalse('testing_workflow' in self.getWorkflowTool().getChainFor(document.getTypeInfo().getId()))
#getattr(document, convertToMixedCase(action))() #getattr(document, convertToMixedCase(action))()
user_action = action + '_action' user_action = action + '_action'
self.wf.doActionFor(document, user_action) self.getWorkflowTool().doActionFor(document, user_action)
#self.wf.doActionFor(document, user_action)
def getStateFor(self, document): def getStateFor(self, document):
return getattr(document, 'getValidationState')() return getattr(document, 'getValidationState')()
......
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