Commit 77d7569b authored by Aurel's avatar Aurel

check workflow chain are not removed by upgrade


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9307af38
...@@ -834,6 +834,19 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -834,6 +834,19 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
for id, wf_ids in cbt.items(): for id, wf_ids in cbt.items():
self.failUnless(id!="Geek Object") self.failUnless(id!="Geek Object")
def stepCheckWorkflowChainExists(self, sequence=None, sequence_list=None, **kw):
"""
Check if the workflowChain has been removed
"""
present = 0
pw = self.getWorkflowTool()
cbt = pw._chains_by_type
if cbt is not None:
for id, wf_ids in cbt.items():
if id == "Geek Object":
present = 1
self.assertEqual(present, 1)
def stepAddWorkflowToBusinessTemplate(self, sequence=None, sequence_list=None, **kw): def stepAddWorkflowToBusinessTemplate(self, sequence=None, sequence_list=None, **kw):
""" """
Add workflow to business template Add workflow to business template
...@@ -3183,6 +3196,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -3183,6 +3196,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
CheckCategoriesExists \ CheckCategoriesExists \
CheckSubCategoriesExists \ CheckSubCategoriesExists \
CheckWorkflowExists \ CheckWorkflowExists \
CheckWorkflowChainExists \
CheckFirstActionExists \ CheckFirstActionExists \
CheckSecondActionExists \ CheckSecondActionExists \
CheckCatalogMethodExists \ CheckCatalogMethodExists \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment