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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
c1f288b3
Commit
c1f288b3
authored
Mar 16, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CodingStyleTestCase: check workflow consistency
parent
01d73a50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5Type/tests/CodingStyleTestCase.py
product/ERP5Type/tests/CodingStyleTestCase.py
+13
-0
No files found.
product/ERP5Type/tests/CodingStyleTestCase.py
View file @
c1f288b3
...
@@ -195,3 +195,16 @@ class CodingStyleTestCase(ERP5TypeTestCase):
...
@@ -195,3 +195,16 @@ class CodingStyleTestCase(ERP5TypeTestCase):
'action_name'
:
action_name
,
'action_name'
:
action_name
,
})
})
self
.
assertEqual
(
duplicate_action_list
,
[])
self
.
assertEqual
(
duplicate_action_list
,
[])
def
test_workflow_consistency
(
self
):
self
.
maxDiff
=
None
workflow_id_set
=
set
()
for
business_template
in
self
.
_getTestedBusinessTemplateValueList
():
workflow_id_set
.
update
(
business_template
.
getTemplateWorkflowIdList
())
message_list
=
[]
for
workflow_id
in
workflow_id_set
:
message_list
.
extend
(
self
.
portal
.
portal_workflow
[
workflow_id
].
checkConsistency
())
self
.
assertEqual
(
message_list
,
[])
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