[Erp5-report] r11688 - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 12 14:10:09 CET 2006
Author: aurel
Date: Tue Dec 12 14:10:06 2006
New Revision: 11688
URL: http://svn.erp5.org?rev=11688&view=rev
Log:
check workflow chain are not removed by upgrade
Modified:
erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
Modified: erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testBusinessTemplate.py?rev=11688&r1=11687&r2=11688&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py Tue Dec 12 14:10:06 2006
@@ -833,6 +833,19 @@
if cbt is not None:
for id, wf_ids in cbt.items():
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):
"""
@@ -3183,6 +3196,7 @@
CheckCategoriesExists \
CheckSubCategoriesExists \
CheckWorkflowExists \
+ CheckWorkflowChainExists \
CheckFirstActionExists \
CheckSecondActionExists \
CheckCatalogMethodExists \
More information about the Erp5-report
mailing list