ERP5Workflow: change testSecurity to be able to run on ERP5 Workflow
Showing
... | ... | @@ -115,9 +115,9 @@ class TestSecurityMixin(ERP5TypeTestCase): |
""" | ||
error_list = [] | ||
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
|
||
continue | ||
for transition in wf.transitions.objectValues(): | ||
for transition in wf.getTransitionValueList(): | ||
if getattr(transition, 'trigger_type', 1) == 0: | ||
# Automatic transition without guard is safe | ||
continue | ||
... | ... |