Commit b5902e8c authored by iv's avatar iv

ERP5Workflow: change testSecurity to be able to run on ERP5 Workflow

parent ccf2d492
...@@ -115,9 +115,9 @@ class TestSecurityMixin(ERP5TypeTestCase): ...@@ -115,9 +115,9 @@ class TestSecurityMixin(ERP5TypeTestCase):
""" """
error_list = [] error_list = []
for wf in self.portal.portal_workflow.objectValues(): for wf in self.portal.portal_workflow.objectValues():
if wf.__class__.__name__ == 'InteractionWorkflowDefinition': if wf.__class__.__name__ in ['InteractionWorkflowDefinition', 'Interaction Workflow']: # XXX why?
continue continue
for transition in wf.transitions.objectValues(): for transition in wf.getTransitionValueList():
if getattr(transition, 'trigger_type', 1) == 0: if getattr(transition, 'trigger_type', 1) == 0:
# Automatic transition without guard is safe # Automatic transition without guard is safe
continue continue
......
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