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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Iliya Manolov
erp5
Commits
4d6a3714
Commit
4d6a3714
authored
Dec 23, 2014
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_workflow: Remove a Base Category variable workflow5 from testWorkflow5Method.
parent
ea75cdb0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
bt5/erp5_workflow/TestTemplateItem/portal_components/test.erp5.testWorkflow5Method.py
...teItem/portal_components/test.erp5.testWorkflow5Method.py
+6
-6
bt5/erp5_workflow/bt/template_test_id_list
bt5/erp5_workflow/bt/template_test_id_list
+1
-0
No files found.
bt5/erp5_workflow/TestTemplateItem/portal_components/test.erp5.testWorkflow5Method.py
View file @
4d6a3714
...
@@ -59,14 +59,14 @@ class TestERP5Workflow(ERP5TypeTestCase):
...
@@ -59,14 +59,14 @@ class TestERP5Workflow(ERP5TypeTestCase):
type_base_category_list
=
([
'category_state'
,])
type_base_category_list
=
([
'category_state'
,])
)
)
type_object
.
setWorkflow5Value
(
new_workflow
)
#
type_object.setWorkflow5Value(new_workflow)
type_object
.
workflow_list
=
(
'new_workflow'
,)
type_object
.
workflow_list
=
(
'new_workflow'
,)
#type_object.setProperty('Transition_2', new_workflow)
#type_object.setProperty('Transition_2', new_workflow)
self
.
assertEqual
(
type_object
.
getBaseCategoryList
(),
[
'workflow5'
])
#
self.assertEqual(type_object.getBaseCategoryList(), ['workflow5'])
self
.
assertEqual
(
type_object
.
getWorkflow5
(),
#
self.assertEqual(type_object.getWorkflow5(),
'workflow_module/new_workflow'
)
#
'workflow_module/new_workflow')
self
.
assertEqual
(
len
(
type_object
.
getWorkflow5ValueList
()),
1
)
#
self.assertEqual(len(type_object.getWorkflow5ValueList()), 1)
# create a module
# create a module
self
.
portal
.
portal_types
.
newContent
(
self
.
portal
.
portal_types
.
newContent
(
...
...
bt5/erp5_workflow/bt/template_test_id_list
0 → 100644
View file @
4d6a3714
test.erp5.testWorkflow5Method
\ No newline at end of file
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