Commit 700d94ce authored by iv's avatar iv

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

parent 1428ce98
...@@ -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?
Please register or sign in to reply
  • Maintainer

    With pdb on an ERP5 Interaction Workflow, I get:

    (Pdb) self
    <Interaction Workflow at /erp5/portal_workflow/testing_erp5_interaction_workflow>
    (Pdb) self.__class__.__name__
    'Interaction Workflow'
Please register or sign in to reply
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