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
Sebastien Robin
erp5
Commits
2c11d18d
Commit
2c11d18d
authored
Aug 23, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: add test accessing to Base_viewDict on Transition
parent
25a91500
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
product/ERP5Workflow/tests/testERP5Workflow.py
product/ERP5Workflow/tests/testERP5Workflow.py
+10
-4
No files found.
product/ERP5Workflow/tests/testERP5Workflow.py
View file @
2c11d18d
...
...
@@ -235,11 +235,17 @@ class TestERP5Workflow(ERP5TypeTestCase):
def
test_Base_viewDict
(
self
):
workflow
=
self
.
workflow_module
.
newContent
(
portal_type
=
'Workflow'
)
transition
=
workflow
.
newContent
(
portal_type
=
'Transition'
)
self
.
commit
()
self
.
logMessage
http_response
=
self
.
publish
(
transition
.
getPath
()
+
'/Base_viewDict'
)
state
=
workflow
.
newContent
(
portal_type
=
'State'
,
title
=
'Some State'
)
transition
=
workflow
.
newContent
(
portal_type
=
'Transition'
,
title
=
'Some Transition'
)
transition
.
setReference
(
'change_something'
)
transition
.
setGuardRoleList
([
'Assignee'
,
'Assignor'
])
transition
.
setCategoryList
(
'destination/'
+
transition
.
getPath
())
http_response
=
self
.
publish
(
transition
.
getPath
()
+
'/Base_viewDict'
,
basic
=
'ERP5TypeTestCase:'
,)
self
.
logMessage
(
'path: '
+
transition
.
getPath
()
+
'/Base_viewDict'
)
self
.
logMessage
(
str
(
http_response
.
status
)
+
'
\
n
'
)
self
.
assertEqual
(
http_response
.
status
,
200
)
def
test_WorkflowSecurity
(
self
):
...
...
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