Commit f06117c3 authored by Ayush Tiwari's avatar Ayush Tiwari

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

parent e204dda5
...@@ -1020,6 +1020,12 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin): ...@@ -1020,6 +1020,12 @@ class ERP5TypeCommandLineTestCase(ERP5TypeTestCaseMixin):
if not quiet: if not quiet:
ZopeTestCase._print('Adding %s business template ... ' % bt_title) ZopeTestCase._print('Adding %s business template ... ' % bt_title)
bt = template_tool.download(url) 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: if not quiet:
ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start)) ZopeTestCase._print('(imported in %.3fs) ' % (time.time() - start))
# For unit test, we accept installing business templates with # 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