Commit 6a80a5e9 authored by Rafael Monnerat's avatar Rafael Monnerat

testSlapOSMixin: Provide full bt5 list if --load is used

  This helps if you are using runUnitTest --save/load --update_only=bt5_name
parent cfe9b87b
...@@ -233,6 +233,100 @@ class testSlapOSMixin(ERP5TypeTestCase): ...@@ -233,6 +233,100 @@ class testSlapOSMixin(ERP5TypeTestCase):
self.clearCache() self.clearCache()
self.tic() self.tic()
def getExpectedBusinessTemplateInstalledAfterConfiguration(self):
return [ 'erp5_core',
'erp5_xhtml_style',
'erp5_property_sheets',
'erp5_mysql_innodb_catalog',
'erp5_upgrader',
'slapos_upgrader',
'erp5_full_text_myisam_catalog',
'erp5_core_proxy_field_legacy',
'erp5_base',
'erp5_administration',
'erp5_workflow',
'erp5_configurator',
'slapos_configurator',
'erp5_simulation',
'erp5_pdm',
'erp5_trade',
'erp5_ui_test_core',
'erp5_tiosafe_core',
'erp5_item',
'erp5_forge',
'erp5_ingestion_mysql_innodb_catalog',
'erp5_ingestion',
'erp5_crm',
'erp5_system_event',
'erp5_secure_payment',
'erp5_security_uid_innodb_catalog',
'erp5_payzen_secure_payment',
'erp5_ooo_import',
'erp5_odt_style',
'erp5_ods_style',
'erp5_jquery',
'erp5_jquery_plugin_colorpicker',
'erp5_jquery_plugin_elastic',
'erp5_jquery_plugin_jqchart',
'erp5_jquery_plugin_mbmenu',
'erp5_jquery_plugin_sheet',
'erp5_jquery_sheet_editor',
'erp5_jquery_ui',
'erp5_deferred_style',
'erp5_dhtml_style',
'erp5_knowledge_pad',
'erp5_web',
'erp5_rss_style',
'erp5_dms',
'erp5_content_translation',
'erp5_software_pdm',
'erp5_svg_editor',
'erp5_computer_immobilisation',
'erp5_open_trade',
'erp5_accounting',
'erp5_commerce',
'erp5_credential',
'erp5_km',
'erp5_web_download_theme',
'erp5_web_shacache',
'erp5_data_set',
'erp5_web_shadir',
'erp5_invoicing',
'erp5_simplified_invoicing',
'erp5_credential_oauth2',
'erp5_accounting_l10n_fr',
'erp5_ace_editor',
'erp5_code_mirror',
'erp5_font',
'erp5_hal_json_style',
'erp5_l10n_fr',
'erp5_l10n_zh',
'erp5_movement_table_catalog',
'erp5_web_renderjs_ui',
'erp5_web_service',
'slapos_ecoallocation',
'slapos_jio',
'slapos_l10n_zh',
'slapos_subscription_request',
'erp5_bearer_token',
'erp5_access_token',
'erp5_project',
'erp5_oauth',
'erp5_oauth_facebook_login',
'erp5_oauth_google_login',
'slapos_cloud',
'slapos_slap_tool',
'slapos_category',
'slapos_rss_style',
'slapos_pdm',
'slapos_crm',
'slapos_accounting',
'slapos_payzen',
'slapos_web',
'slapos_web_deploy',
'slapos_erp5',
]
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """
Install the business templates. Install the business templates.
...@@ -246,6 +340,9 @@ class testSlapOSMixin(ERP5TypeTestCase): ...@@ -246,6 +340,9 @@ class testSlapOSMixin(ERP5TypeTestCase):
'slapos_configurator', 'slapos_configurator',
'erp5_ui_test_core' 'erp5_ui_test_core'
] ]
if int(os.environ.get('erp5_load_data_fs', 0)):
result.extend(
self.getExpectedBusinessTemplateInstalledAfterConfiguration())
return result return result
class TestSlapOSDummy(testSlapOSMixin): class TestSlapOSDummy(testSlapOSMixin):
......
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