[Erp5-report] r45157 luke - /erp5/trunk/products/ERP5/tests/testBusinessTemplate.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 7 11:15:33 CEST 2011
Author: luke
Date: Thu Apr 7 11:15:32 2011
New Revision: 45157
URL: http://svn.erp5.org?rev=45157&view=rev
Log:
- avoid copy and paste of current common sequence
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=45157&r1=45156&r2=45157&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testBusinessTemplate.py [utf8] Thu Apr 7 11:15:32 2011
@@ -7397,22 +7397,25 @@ class TestBusinessTemplate(ERP5TypeTestC
self.assertEqual(os.path.basename(sequence['document_path']),
os.path.basename(sequence['ps_path']))
+ save_current_business_template_sequence_string = '\
+ BuildBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ CheckObjectPropertiesInBusinessTemplate \
+ SaveBusinessTemplate \
+ CheckBuiltBuildingState \
+ CheckNotInstalledInstallationState \
+ '
def test_BusinessTemplateWithDocument(self):
sequence_list = SequenceList()
sequence_string = '\
CreateDocument \
CreateNewBusinessTemplate \
UseExportBusinessTemplate \
+ ' + self.save_current_business_template_sequence_string + '\
AddDocumentToBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
RemoveDocument \
RemoveBusinessTemplate \
RemoveAllTrashBins \
@@ -7455,13 +7458,7 @@ class TestBusinessTemplate(ERP5TypeTestC
AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
+ ' + self.save_current_business_template_sequence_string + '\
RemoveDocument \
RemovePropertySheet \
RemoveBusinessTemplate \
@@ -7484,13 +7481,7 @@ class TestBusinessTemplate(ERP5TypeTestC
RemovePropertySheetFromBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
+ ' + self.save_current_business_template_sequence_string + '\
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
@@ -7518,13 +7509,7 @@ class TestBusinessTemplate(ERP5TypeTestC
AddDocumentToBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
+ ' + self.save_current_business_template_sequence_string + '\
RemovePropertySheet \
RemoveDocument \
RemoveBusinessTemplate \
@@ -7591,13 +7576,7 @@ class TestBusinessTemplate(ERP5TypeTestC
AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
+ ' + self.save_current_business_template_sequence_string + '\
RemoveDocument \
RemovePropertySheet \
RemoveBusinessTemplate \
@@ -7624,13 +7603,7 @@ class TestBusinessTemplate(ERP5TypeTestC
\
CheckDraftBuildingState \
CheckNotInstalledInstallationState \
- BuildBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
- CheckObjectPropertiesInBusinessTemplate \
- SaveBusinessTemplate \
- CheckBuiltBuildingState \
- CheckNotInstalledInstallationState \
+ ' + self.save_current_business_template_sequence_string + '\
RemoveBusinessTemplate \
Tic \
CreatePropertySheet \
More information about the Erp5-report
mailing list