Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
a2599069
Commit
a2599069
authored
Sep 05, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: remove useless tests on worklists
parent
8abe46e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
16 deletions
+2
-16
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
...tTemplateItem/portal_components/test.erp5.testWorklist.py
+2
-16
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testWorklist.py
View file @
a2599069
...
...
@@ -483,28 +483,14 @@ class TestWorklist(testWorkflowMixin):
self
.
removeWorklist
(
'validation_workflow'
,
[
'region_worklist'
])
self
.
commit
()
def
test_05_guard_setters
(
self
):
def
test_05_guard_
expression_
setters
(
self
):
worklist_id
=
'guarded_worklist'
workflow_id
=
'validation_workflow'
workflow_value
=
self
.
getWorkflowTool
()[
workflow_id
]
self
.
createWorklist
(
workflow_id
,
worklist_id
,
action_name
=
'guarded_test'
)
worklist_value
=
getattr
(
workflow_value
,
'worklist_%s'
%
worklist_id
)
# roles
worklist_value
.
setGuardRoleList
([])
self
.
assertEqual
(
worklist_value
.
guard_role
,
())
worklist_value
.
setGuardRoleList
([
'Assignor'
,
'Assignee'
])
self
.
assertEqual
(
worklist_value
.
guard_role
,
(
'Assignor'
,
'Assignee'
))
# permissions
worklist_value
.
setGuardPermissionList
([])
self
.
assertEqual
(
worklist_value
.
guard_permission
,
())
worklist_value
.
setGuardPermissionList
([
'Modify portal content'
])
self
.
assertEqual
(
worklist_value
.
guard_permission
,
(
'Modify portal content'
,))
# groups
worklist_value
.
setGuardGroupList
([])
self
.
assertEqual
(
worklist_value
.
guard_group
,
())
worklist_value
.
setGuardGroupList
([
'Group1'
,
'Group2'
])
self
.
assertEqual
(
worklist_value
.
guard_group
,
(
'Group1'
,
'Group2'
))
# expression
worklist_value
.
setGuardExpression
(
'python: "Hello, world"'
)
self
.
assertEqual
(
worklist_value
.
guard_expression
.
text
,
'python: "Hello, world"'
)
...
...
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