Commit 6903eb8d authored by Łukasz Nowak's avatar Łukasz Nowak

- do not play with sequence strings as mixins will provide better code optimisation


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45293 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b8304ad7
......@@ -3340,17 +3340,6 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
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(BusinessTemplateMixin):
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(BusinessTemplateMixin):
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(BusinessTemplateMixin):
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(TestDocumentTemplateItem):
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(TestDocumentTemplateItem):
\
RemoveTestFromBusinessTemplate \
CheckModifiedBuildingState \
' + self.save_current_business_template_sequence_string + '\
CheckNotInstalledInstallationState \
BuildBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
CheckObjectPropertiesInBusinessTemplate \
SaveBusinessTemplate \
CheckBuiltBuildingState \
CheckNotInstalledInstallationState \
ImportBusinessTemplate \
UseImportBusinessTemplate \
CheckBuiltBuildingState \
......
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