Commit 5086eecd authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Install all BM together during tests

parent 6f12f0e2
......@@ -1020,10 +1020,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
......@@ -1053,6 +1053,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