Commit 8abbedb9 authored by Łukasz Nowak's avatar Łukasz Nowak

- avoid copy and paste of current common sequence


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45157 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7dd3cb35
...@@ -7397,22 +7397,25 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7397,22 +7397,25 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.assertEqual(os.path.basename(sequence['document_path']), self.assertEqual(os.path.basename(sequence['document_path']),
os.path.basename(sequence['ps_path'])) os.path.basename(sequence['ps_path']))
save_current_business_template_sequence_string = '\
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
'
def test_BusinessTemplateWithDocument(self): def test_BusinessTemplateWithDocument(self):
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = '\ sequence_string = '\
CreateDocument \ CreateDocument \
CreateNewBusinessTemplate \ CreateNewBusinessTemplate \
UseExportBusinessTemplate \ UseExportBusinessTemplate \
' + self.save_current_business_template_sequence_string + '\
AddDocumentToBusinessTemplate \ AddDocumentToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveDocument \ RemoveDocument \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
RemoveAllTrashBins \ RemoveAllTrashBins \
...@@ -7455,13 +7458,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7455,13 +7458,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
AddPropertySheetToBusinessTemplate \ AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \ ' + self.save_current_business_template_sequence_string + '\
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveDocument \ RemoveDocument \
RemovePropertySheet \ RemovePropertySheet \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
...@@ -7484,13 +7481,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7484,13 +7481,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
RemovePropertySheetFromBusinessTemplate \ RemovePropertySheetFromBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \ ' + self.save_current_business_template_sequence_string + '\
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
ImportBusinessTemplate \ ImportBusinessTemplate \
UseImportBusinessTemplate \ UseImportBusinessTemplate \
CheckBuiltBuildingState \ CheckBuiltBuildingState \
...@@ -7518,13 +7509,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7518,13 +7509,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
AddDocumentToBusinessTemplate \ AddDocumentToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \ ' + self.save_current_business_template_sequence_string + '\
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemovePropertySheet \ RemovePropertySheet \
RemoveDocument \ RemoveDocument \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
...@@ -7591,13 +7576,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7591,13 +7576,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
AddPropertySheetToBusinessTemplate \ AddPropertySheetToBusinessTemplate \
CheckModifiedBuildingState \ CheckModifiedBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \ ' + self.save_current_business_template_sequence_string + '\
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveDocument \ RemoveDocument \
RemovePropertySheet \ RemovePropertySheet \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
...@@ -7624,13 +7603,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -7624,13 +7603,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
\ \
CheckDraftBuildingState \ CheckDraftBuildingState \
CheckNotInstalledInstallationState \ CheckNotInstalledInstallationState \
BuildBusinessTemplate \ ' + self.save_current_business_template_sequence_string + '\
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
RemoveBusinessTemplate \ RemoveBusinessTemplate \
Tic \ Tic \
CreatePropertySheet \ CreatePropertySheet \
......
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