Commit 15795ae6 authored by wenjie.zheng's avatar wenjie.zheng

erp5_workflow_test: in aftersetup of test workflow, make sure new workflows...

erp5_workflow_test: in aftersetup of test workflow, make sure new workflows have been successfully assign to type object.
parent 7182ff64
......@@ -196,7 +196,12 @@ class TestConvertedWorkflow(TestERP5WorkflowMixin):
module.manage_delObjects(list(module.objectIds()))
workflow_module = self.portal.portal_workflow
dc_workflow_id_list = ['testing_workflow', 'testing_interaction_workflow']
testing_type_value = self.portal.portal_types._getOb('Workflow Test Document')
workflow_module.WorkflowTool_convertWorkflow(batch_mode=True, workflow_id_list=dc_workflow_id_list)
if 'testing_workflow' not in testing_type_value.getTypeWorkflowList():
testing_type_value.addTypeWorkflowList('testing_workflow')
if 'testing_interaction_workflow' not in testing_type_value.getTypeWorkflowList():
testing_type_value.addTypeWorkflowList('testing_interaction_workflow')
self.resetComponentTool()
self.workflow = workflow_module._getOb('testing_workflow')
self.login()
......
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