Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
913e0ba7
Commit
913e0ba7
authored
Feb 18, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SecurityTestCase: minor simplifications
parent
08f88c59
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
product/ERP5Type/tests/SecurityTestCase.py
product/ERP5Type/tests/SecurityTestCase.py
+4
-2
No files found.
product/ERP5Type/tests/SecurityTestCase.py
View file @
913e0ba7
...
@@ -115,7 +115,6 @@ class SecurityTestCase(ERP5TypeTestCase):
...
@@ -115,7 +115,6 @@ class SecurityTestCase(ERP5TypeTestCase):
"""set up and login as default user"""
"""set up and login as default user"""
super
(
SecurityTestCase
,
self
).
_setup
()
super
(
SecurityTestCase
,
self
).
_setup
()
self
.
login
()
self
.
login
()
self
.
portal
=
self
.
getPortal
()
self
.
workflow_tool
=
self
.
portal
.
portal_workflow
self
.
workflow_tool
=
self
.
portal
.
portal_workflow
def
tearDown
(
self
):
def
tearDown
(
self
):
...
@@ -219,7 +218,10 @@ class SecurityTestCase(ERP5TypeTestCase):
...
@@ -219,7 +218,10 @@ class SecurityTestCase(ERP5TypeTestCase):
for
wf
in
self
.
workflow_tool
.
getWorkflowValueListFor
(
document
)
or
[]:
for
wf
in
self
.
workflow_tool
.
getWorkflowValueListFor
(
document
)
or
[]:
if
wf
.
getId
()
==
'edit_workflow'
:
if
wf
.
getId
()
==
'edit_workflow'
:
continue
continue
if
wf
.
__class__
.
__name__
in
[
'InteractionWorkflowDefinition'
,
'Interaction Workflow'
]
:
if
wf
.
__class__
.
__name__
in
(
'InteractionWorkflowDefinition'
,
'Interaction Workflow'
,
):
continue
continue
for
wf_transition
in
wf
.
_getWorkflowStateOf
(
document
).
getDestinationValueList
():
for
wf_transition
in
wf
.
_getWorkflowStateOf
(
document
).
getDestinationValueList
():
if
wf_transition
.
getTriggerType
()
==
TRIGGER_USER_ACTION
:
if
wf_transition
.
getTriggerType
()
==
TRIGGER_USER_ACTION
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment