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

erp5_workflow_test_data: change erp5workflow to workflow.

parent 18b2b784
...@@ -207,7 +207,7 @@ class TestERP5WorkflowMixin(ERP5TypeTestCase): ...@@ -207,7 +207,7 @@ class TestERP5WorkflowMixin(ERP5TypeTestCase):
self.getWorkflowTool().setChainForPortalTypes(['ERP5Workflow Test Document'], ()) self.getWorkflowTool().setChainForPortalTypes(['ERP5Workflow Test Document'], ())
type_test_object = self.portal.portal_types._getOb('ERP5Workflow Test Document') type_test_object = self.portal.portal_types._getOb('ERP5Workflow Test Document')
type_test_object.edit(type_base_category_list=('validation_state',)) type_test_object.edit(type_base_category_list=('validation_state',))
type_test_object.edit(type_erp5workflow_list=('testing_workflow',)) type_test_object.edit(type_workflow_list=('testing_workflow',))
#self.commit() #self.commit()
""" """
...@@ -221,7 +221,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin): ...@@ -221,7 +221,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
self.workflow_module = self.portal.portal_workflow self.workflow_module = self.portal.portal_workflow
self.wf = self.workflow_module._getOb('workflow_testing_workflow') # workflow id comes with suffix self.wf = self.workflow_module._getOb('workflow_testing_workflow') # workflow id comes with suffix
type_test_object = self.portal.portal_types._getOb('ERP5Workflow Test Document') type_test_object = self.portal.portal_types._getOb('ERP5Workflow Test Document')
type_test_object.edit(type_erp5workflow_list=('workflow_testing_workflow', 'interactionworkflow_testing_interaction_workflow', )) type_test_object.edit(type_workflow_list=('workflow_testing_workflow', 'interactionworkflow_testing_interaction_workflow', ))
self.resetComponentTool() self.resetComponentTool()
self.assertFalse('testing_workflow' in self.getWorkflowTool().getChainFor(type_test_object.getId())) self.assertFalse('testing_workflow' in self.getWorkflowTool().getChainFor(type_test_object.getId()))
self.login() self.login()
...@@ -244,9 +244,9 @@ class TestDCWorkflow(TestERP5WorkflowMixin): ...@@ -244,9 +244,9 @@ class TestDCWorkflow(TestERP5WorkflowMixin):
self.getWorkflowTool().setChainForPortalTypes(['ERP5Workflow Test Document'], ('testing_workflow', 'testing_interaction_workflow', 'edit_workflow', )) self.getWorkflowTool().setChainForPortalTypes(['ERP5Workflow Test Document'], ('testing_workflow', 'testing_interaction_workflow', 'edit_workflow', ))
self.wf = self.workflow_module._getOb('testing_workflow') self.wf = self.workflow_module._getOb('testing_workflow')
type_test_object = self.portal.portal_types['ERP5Workflow Test Document'] type_test_object = self.portal.portal_types['ERP5Workflow Test Document']
type_test_object.edit(type_erp5workflow_list=()) type_test_object.edit(type_workflow_list=())
self.resetComponentTool() self.resetComponentTool()
self.assertEqual(type_test_object.getTypeErp5workflowList(), []) self.assertEqual(type_test_object.getTypeworkflowList(), [])
self.login() self.login()
def getStateFor(self, document): def getStateFor(self, document):
......
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