Commit 03a5103e authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

bt5_config: If bt is Business Manager, update Installation state in tests

parent 9115845f
......@@ -1053,6 +1053,12 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if not quiet:
ZopeTestCase._print('Adding %s business template ... ' % bt_title)
bt = template_tool.download(url)
# If the bt is Business Manager, update the installation state
if bt.getPortalType() == 'Business Manager':
template_tool.updateInstallationState([bt])
continue
if not quiet:
ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start))
# For unit test, we accept installing business templates with
......
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