Commit 87c460ba authored by Jérome Perrin's avatar Jérome Perrin

update connection strings before installing any business template, business

template ID genereator needs a valid connection string.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23344 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb11e812
......@@ -392,6 +392,9 @@ class ERP5TypeTestCase(PortalTestCase):
def _updateConnectionStrings(self):
"""Update connection strings with values passed by the testRunner
"""
global current_app
if current_app is not None:
self.app = current_app
portal = self.getPortal()
# update connection strings
for connection_string_name, connection_string in\
......@@ -654,6 +657,8 @@ class ERP5TypeTestCase(PortalTestCase):
for id_ in getLocalConstraintList():
removeLocalConstraint(id_)
self._updateConnectionStrings()
update_business_templates = os.environ.get('update_business_templates') is not None
BusinessTemplate_getModifiedObject = aq_base(getattr(portal, 'BusinessTemplate_getModifiedObject', None))
......
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