Commit 163ab464 authored by wenjie.zheng's avatar wenjie.zheng

erp5_workflow_test: in live test, stop check workflow assignment, because from...

erp5_workflow_test: in live test, stop check workflow assignment, because from now both type of workflows will be saved in  _chain_by_type.
parent 3fc0dc85
...@@ -195,11 +195,9 @@ class TestConvertedWorkflow(TestERP5WorkflowMixin): ...@@ -195,11 +195,9 @@ class TestConvertedWorkflow(TestERP5WorkflowMixin):
module = self.portal.workflow_test_module module = self.portal.workflow_test_module
module.manage_delObjects(list(module.objectIds())) module.manage_delObjects(list(module.objectIds()))
workflow_module = self.portal.portal_workflow workflow_module = self.portal.portal_workflow
type_test_object = self.portal.portal_types['Workflow Test Document']
dc_workflow_id_list = ['testing_workflow', 'testing_interaction_workflow'] dc_workflow_id_list = ['testing_workflow', 'testing_interaction_workflow']
workflow_module.WorkflowTool_convertWorkflow(batch_mode=True, workflow_id_list=dc_workflow_id_list) workflow_module.WorkflowTool_convertWorkflow(batch_mode=True, workflow_id_list=dc_workflow_id_list)
self.resetComponentTool() self.resetComponentTool()
self.assertFalse('testing_workflow' in workflow_module.getChainFor(type_test_object.getId()))
self.workflow = workflow_module._getOb('testing_workflow') self.workflow = workflow_module._getOb('testing_workflow')
self.login() self.login()
...@@ -217,7 +215,6 @@ class TestDCWorkflow(TestERP5WorkflowMixin): ...@@ -217,7 +215,6 @@ class TestDCWorkflow(TestERP5WorkflowMixin):
type_test_object.workflow_list = () type_test_object.workflow_list = ()
self.workflow = workflow_module._getOb('testing_workflow') self.workflow = workflow_module._getOb('testing_workflow')
self.resetComponentTool() self.resetComponentTool()
self.assertEqual(type_test_object.getTypeWorkflowList(), [])
self.login() self.login()
def test_DC01_testWorkflowMigrationForExistingDocument(self): def test_DC01_testWorkflowMigrationForExistingDocument(self):
......
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