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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Paul Graydon
erp5
Commits
78fa0381
Commit
78fa0381
authored
Jan 02, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_workflow: testWorkflow5Method delete useless comment.
parent
476d6715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
bt5/erp5_workflow/TestTemplateItem/portal_components/test.erp5.testWorkflow5Method.py
...teItem/portal_components/test.erp5.testWorkflow5Method.py
+1
-15
No files found.
bt5/erp5_workflow/TestTemplateItem/portal_components/test.erp5.testWorkflow5Method.py
View file @
78fa0381
...
...
@@ -59,14 +59,7 @@ class TestERP5Workflow(ERP5TypeTestCase):
type_base_category_list
=
([
'category_state'
,])
)
#type_object.setWorkflow5Value(new_workflow)
type_object
.
workflow_list
=
(
'new_workflow'
,)
#type_object.setProperty('Transition_2', new_workflow)
#self.assertEqual(type_object.getBaseCategoryList(), ['workflow5'])
#self.assertEqual(type_object.getWorkflow5(),
# 'workflow_module/new_workflow')
#self.assertEqual(len(type_object.getWorkflow5ValueList()), 1)
type_object
.
erp5workflow_list
=
(
'new_workflow'
,)
# create a module
self
.
portal
.
portal_types
.
newContent
(
...
...
@@ -87,22 +80,15 @@ class TestERP5Workflow(ERP5TypeTestCase):
### execute transition
t1
.
execute
(
new_object
)
#new_object.transition1()
self
.
assertEqual
(
new_object
.
getCategoryStateTitle
(),
'validated'
)
### call accessor
#new_object.quoi() # accessor is not whatever
new_object
.
transition2
()
#from thread import get_ident
#raise NotImplementedError (get_ident())
#raise NotImplementedError (new_object.transition2().__class__)# <type 'NoneType'>
self
.
assertEqual
(
new_object
.
getCategoryStateTitle
(),
'draft'
)
new_object
.
transition1
()
self
.
assertEqual
(
new_object
.
getCategoryStateTitle
(),
'validated'
)
#new_object.set_to_couscous_please()
new_object
.
setToCouscousPlease
()
self
.
assertEqual
(
new_object
.
getCategoryStateTitle
(),
'couscous'
)
...
...
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