Commit 520d03b7 authored by iv's avatar iv

ERP5Workflow: fix testBase and add comment

when removing a workflow from a portal type, it was only using old
chain_by_type and not removing them from inside the portal type
through the type_workflow value
parent 889053ef
...@@ -134,6 +134,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -134,6 +134,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
""" """
self.getWorkflowTool().setChainForPortalTypes( self.getWorkflowTool().setChainForPortalTypes(
['Organisation'], ()) ['Organisation'], ())
self.getPortalObject().portal_types.Organisation.setTypeWorkflowList([])
def stepAssociateWorkflows(self, sequence=None, sequence_list=None, **kw): def stepAssociateWorkflows(self, sequence=None, sequence_list=None, **kw):
""" """
...@@ -204,7 +205,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -204,7 +205,7 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
def stepSetSameTitleValueWithEdit(self, sequence=None, sequence_list=None, def stepSetSameTitleValueWithEdit(self, sequence=None, sequence_list=None,
**kw): **kw):
""" """
Set a different title value Set the same title value
""" """
object_instance = sequence.get('object_instance') object_instance = sequence.get('object_instance')
object_instance.edit(title=object_instance.getTitle()) object_instance.edit(title=object_instance.getTitle())
......
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