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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
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):
'action_name'
:
action_name
,
})
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