Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
88e2af63
Commit
88e2af63
authored
Mar 19, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_workflow_test_data: new test test_09_testBaseGetWorkflowHistoryItemListScript added.
parent
19129849
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
.../portal_components/test.erp5.testWorkflowAndDCWorkflow.py
+18
-0
No files found.
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
View file @
88e2af63
...
...
@@ -110,6 +110,24 @@ class TestERP5WorkflowMixin(ERP5TypeTestCase):
checkExpectedDict
({
"category"
:
"workflow"
,
"name"
:
"Invalidate"
},
action
)
def
test_09_testBaseGetWorkflowHistoryItemListScript
(
self
):
"""
Base_getWorkflowHistoryItemList is used for user interface, make sure it is still
working fine
"""
new_object
=
self
.
getTestObject
()
self
.
doActionFor
(
new_object
,
"validate"
)
item_list
=
new_object
.
Base_getWorkflowHistoryItemList
(
"testing_workflow"
,
display
=
0
)
self
.
assertEqual
(
3
,
len
(
item_list
))
def
checkLine
(
expected_data
,
index
):
line
=
item_list
[
index
]
for
key
in
expected_data
.
keys
():
self
.
assertEqual
(
expected_data
[
key
],
line
.
getProperty
(
key
))
checkLine
({
'state'
:
'draft'
},
0
)
checkLine
({
'state'
:
'draft'
},
1
)
checkLine
({
'state'
:
'validated'
},
2
)
### Doesn't exist yet
def
_testSimpleWorklist
(
self
):
pass
...
...
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