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
Amer
erp5
Commits
1fd82343
Commit
1fd82343
authored
May 14, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testWorkflowAndDCWorkflow: fix incorrect workflow names appear in the live test.
parent
17e6386d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
.../portal_components/test.erp5.testWorkflowAndDCWorkflow.py
+2
-3
No files found.
bt5/erp5_workflow_test_data/TestTemplateItem/portal_components/test.erp5.testWorkflowAndDCWorkflow.py
View file @
1fd82343
...
...
@@ -219,7 +219,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
self
.
portal
=
self
.
getPortal
()
self
.
getWorkflowTool
().
setChainForPortalTypes
([
'ERP5Workflow Test Document'
],
())
self
.
workflow_module
=
self
.
portal
.
portal_workflow
self
.
wf
=
self
.
workflow_module
.
_getOb
(
'
testing_workflow
_workflow'
)
# workflow id comes with suffix
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_erp5workflow_list
=
(
'workflow_testing_workflow'
,
'interactionworkflow_testing_interaction_workflow'
,
))
self
.
resetComponentTool
()
...
...
@@ -231,7 +231,7 @@ class TestERP5Workflow(TestERP5WorkflowMixin):
def
doActionFor
(
self
,
document
,
action
):
user_action
=
'_'
.
join
(
action
.
split
(
'_'
)[
0
:
-
1
])
+
'_action'
# remove suffix
self
.
portal
.
portal_workflow
.
doActionFor
(
document
,
user_action
,
wf_id
=
'
testing_workflow
_workflow'
)
self
.
portal
.
portal_workflow
.
doActionFor
(
document
,
user_action
,
wf_id
=
'
workflow_testing
_workflow'
)
class
TestDCWorkflow
(
TestERP5WorkflowMixin
):
"""
...
...
@@ -245,7 +245,6 @@ class TestDCWorkflow(TestERP5WorkflowMixin):
self
.
wf
=
self
.
workflow_module
.
_getOb
(
'testing_workflow'
)
type_test_object
=
self
.
portal
.
portal_types
[
'ERP5Workflow Test Document'
]
type_test_object
.
edit
(
type_erp5workflow_list
=
())
type_test_object
.
edit
(
type_interaction_workflow_list
=
())
self
.
resetComponentTool
()
self
.
assertEqual
(
type_test_object
.
getTypeErp5workflowList
(),
[])
self
.
login
()
...
...
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