[Erp5-report] r45293 luke - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 11 17:01:37 CEST 2011
Author: luke
Date: Mon Apr 11 17:01:36 2011
New Revision: 45293
URL: http://svn.erp5.org?rev=45293&view=rev
Log:
- do not play with sequence strings as mixins will provide better code optimisation
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=45293&r1=45292&r2=45293&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Mon Apr 11 17:01:36 2011
@@ -3340,17 +3340,6 @@ class BusinessTemplateMixin(ERP5TypeTest
self.assertEqual(os.path.basename(sequence['document_path']),
os.path.basename(sequence['test_path']))
- save_current_business_template_sequence_string = '\
- CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- '
-
def stepRemovePropertySheetFromBusinessTemplate(self, sequence=None, **kw):
"""
Add Property Sheet to Business Template
@@ -6994,7 +6983,14 @@ class TestBusinessTemplate(BusinessTempl
UseExportBusinessTemplate \
AddTestToBusinessTemplate \
CheckModifiedBuildingState \
- ' + self.save_current_business_template_sequence_string + '\
+ CheckNotInstalledInstallationState \
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
RemoveTest \
RemoveBusinessTemplate \
RemoveAllTrashBins \
@@ -7188,7 +7184,14 @@ class TestDocumentTemplateItem(BusinessT
AddDocumentToBusinessTemplate \
AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \
- ' + self.save_current_business_template_sequence_string + '\
+ CheckNotInstalledInstallationState \
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
RemoveDocument \
RemovePropertySheet \
RemoveBusinessTemplate \
@@ -7214,7 +7217,14 @@ class TestDocumentTemplateItem(BusinessT
CheckPropertySheetMigration \
\
CheckDraftBuildingState \
- ' + self.save_current_business_template_sequence_string + '\
+ CheckNotInstalledInstallationState \
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
RemoveBusinessTemplate \
Tic \
CreatePropertySheet \
@@ -7258,7 +7268,14 @@ class TestTestTemplateItem(TestDocumentT
AddDocumentToBusinessTemplate \
AddTestToBusinessTemplate \
CheckModifiedBuildingState \
- ' + self.save_current_business_template_sequence_string + '\
+ CheckNotInstalledInstallationState \
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
RemoveDocument \
RemoveTest \
RemoveBusinessTemplate \
@@ -7280,7 +7297,14 @@ class TestTestTemplateItem(TestDocumentT
\
RemoveTestFromBusinessTemplate \
CheckModifiedBuildingState \
- ' + self.save_current_business_template_sequence_string + '\
+ CheckNotInstalledInstallationState \
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
More information about the Erp5-report
mailing list