Commit b683393f authored by Jérome Perrin's avatar Jérome Perrin

testUpgradeInstanceWithOldDataFs with more business templates

Install more business templates such as erp5_web or erp5_dms, to confirm that we can also update these business templates.

Run the tests with "full indexing", to be more realistic and to be sure that we don't hide problem that would happen when reindexing action definitions or property sheets.

See merge request !1228
parents 727a7941 2e4c3dbd
...@@ -33,12 +33,35 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): ...@@ -33,12 +33,35 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
'erp5_full_text_mroonga_catalog', 'erp5_full_text_mroonga_catalog',
'erp5_base', 'erp5_base',
'erp5_workflow', 'erp5_workflow',
'erp5_simulation',
'erp5_accounting', 'erp5_accounting',
'erp5_configurator', 'erp5_configurator',
'erp5_simulation',
'erp5_pdm', 'erp5_pdm',
'erp5_trade', 'erp5_trade',
'erp5_accounting', 'erp5_ingestion_mysql_innodb_catalog',
'erp5_ingestion',
'erp5_crm',
'erp5_jquery_ui',
'erp5_knowledge_pad',
'erp5_project',
'erp5_forge',
'erp5_web',
'erp5_jquery_plugin_mbmenu',
'erp5_jquery_plugin_sheet',
'erp5_jquery_plugin_jqchart',
'erp5_jquery_plugin_colorpicker',
'erp5_jquery_plugin_elastic',
'erp5_jquery_sheet_editor',
'erp5_svg_editor',
'erp5_dms',
'erp5_mrp',
'erp5_hal_json_style',
'erp5_font',
'erp5_web_renderjs_ui',
'erp5_code_mirror',
'erp5_multimedia',
'erp5_smart_assistant',
'erp5_officejs',
'erp5_configurator_standard_trade_template', 'erp5_configurator_standard_trade_template',
'erp5_upgrader') 'erp5_upgrader')
...@@ -57,7 +80,17 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase): ...@@ -57,7 +80,17 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
'erp5_configurator_standard', 'erp5_configurator_standard',
'erp5_jquery', 'erp5_jquery',
'erp5_xhtml_style', 'erp5_xhtml_style',
'erp5_upgrader'), 'erp5_upgrader',
'erp5_accounting',
'erp5_trade',
'erp5_pdm',
'erp5_crm',
'erp5_project',
'erp5_forge',
'erp5_dms',
'erp5_mrp',
'erp5_officejs',
'erp5_web_renderjs_ui'),
())""") ())""")
self.tic() self.tic()
......
...@@ -127,7 +127,11 @@ class ERP5(_ERP5): ...@@ -127,7 +127,11 @@ class ERP5(_ERP5):
shutil.copyfile(os.path.join(old_data_path, 'dump.sql'), shutil.copyfile(os.path.join(old_data_path, 'dump.sql'),
os.path.join(instance_home, 'dump.sql')) os.path.join(instance_home, 'dump.sql'))
return self.runUnitTest('--load', '--portal_id=erp5', full_test) return self.runUnitTest(
'--load',
'--portal_id=erp5',
'--enable_full_indexing=portal_types,portal_property_sheets',
full_test)
return super(ERP5, self).run(full_test) return super(ERP5, self).run(full_test)
......
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