Commit ce34ceee authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: Install all BM together during tests

parent 2e01dc71
......@@ -1053,10 +1053,10 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if not quiet:
ZopeTestCase._print('Adding %s business template ... ' % bt_title)
bt = template_tool.download(url)
bm_list = []
# If the bt is Business Manager, update the installation state
if bt.getPortalType() == 'Business Manager':
template_tool.updateInstallationState([bt])
bm_list.append(bt)
ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start))
continue
......@@ -1086,6 +1086,9 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if not quiet:
ZopeTestCase._print('done (%.3fs)\n' % (time.time() - start))
# Install all BM at one go
template_tool.updateInstallationState(bm_list)
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