Commit dc4c1ebf authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Donot install all BM together in tests

Installing all BM(s) together does disturb the dependency. It should
be only done after we have successfully applied layers and transferred
all BM to new format.
parent a0e34100
......@@ -1032,7 +1032,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
return False
bm_list = []
for url, bt_title in business_template_list:
if (update_business_templates and
erp5_load_data_fs and
......@@ -1056,7 +1055,7 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
bt = template_tool.download(url)
# If the bt is Business Manager, update the installation state
if bt.getPortalType() == 'Business Manager':
bm_list.append(bt)
template_tool.updateInstallationState([bt])
ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start))
continue
......@@ -1086,12 +1085,6 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if not quiet:
ZopeTestCase._print('done (%.3fs)\n' % (time.time() - start))
start = time.time()
# Install all BM at one go
if bm_list:
template_tool.updateInstallationState(bm_list)
ZopeTestCase._print('finished installation of BMs in (%.3fs)\n' % (time.time() - start))
def _getSiteCreationParameterDict(self):
kw = _getConnectionStringDict()
# manage_addERP5Site does not accept the following 2 arguments
......
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