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
Carlos Ramos Carreño
erp5
Commits
07473205
Commit
07473205
authored
Jun 11, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_workflow_test_data: change erp5workflow to workflow.
parent
18b2b784
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
.../portal_components/test.erp5.testWorkflowAndDCWorkflow.py
+4
-4
No files found.
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
View file @
07473205
...
...
@@ -207,7 +207,7 @@ class TestERP5WorkflowMixin(ERP5TypeTestCase):
self.getWorkflowTool().setChainForPortalTypes(['ERP5Workflow Test Document'], ())
type_test_object = self.portal.portal_types._getOb('ERP5Workflow Test Document')
type_test_object.edit(type_base_category_list=('validation_state',))
type_test_object.edit(type_
erp5
workflow_list=('testing_workflow',))
type_test_object.edit(type_workflow_list=('testing_workflow',))
#self.commit()
"""
...
...
@@ -221,7 +221,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
self
.
workflow_module
=
self
.
portal
.
portal_workflow
self
.
wf
=
self
.
workflow_module
.
_getOb
(
'workflow_testing_workflow'
)
# workflow id comes with suffix
type_test_object
=
self
.
portal
.
portal_types
.
_getOb
(
'ERP5Workflow Test Document'
)
type_test_object
.
edit
(
type_
erp5
workflow_list
=
(
'workflow_testing_workflow'
,
'interactionworkflow_testing_interaction_workflow'
,
))
type_test_object
.
edit
(
type_workflow_list
=
(
'workflow_testing_workflow'
,
'interactionworkflow_testing_interaction_workflow'
,
))
self
.
resetComponentTool
()
self
.
assertFalse
(
'testing_workflow'
in
self
.
getWorkflowTool
().
getChainFor
(
type_test_object
.
getId
()))
self
.
login
()
...
...
@@ -244,9 +244,9 @@ class TestDCWorkflow(TestERP5WorkflowMixin):
self
.
getWorkflowTool
().
setChainForPortalTypes
([
'ERP5Workflow Test Document'
],
(
'testing_workflow'
,
'testing_interaction_workflow'
,
'edit_workflow'
,
))
self
.
wf
=
self
.
workflow_module
.
_getOb
(
'testing_workflow'
)
type_test_object
=
self
.
portal
.
portal_types
[
'ERP5Workflow Test Document'
]
type_test_object
.
edit
(
type_
erp5
workflow_list
=
())
type_test_object
.
edit
(
type_workflow_list
=
())
self
.
resetComponentTool
()
self
.
assertEqual
(
type_test_object
.
getType
Erp5
workflowList
(),
[])
self
.
assertEqual
(
type_test_object
.
getTypeworkflowList
(),
[])
self
.
login
()
def
getStateFor
(
self
,
document
):
...
...
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