Commit afea81a2 authored by Julien Muchembled's avatar Julien Muchembled

Unit tests: initialize 'erp5_site_global_id'

This avoids conflicts when several unit test instances run on the same machine.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a5a2df04
......@@ -898,7 +898,10 @@ class ERP5TypeTestCase(ProcessingNodeTestCase, PortalTestCase):
reindex=reindex,
create_activities=create_activities,
**extra_constructor_kw )
sql = extra_constructor_kw.get('erp5_sql_connection_string')
if sql:
app[portal_name]._setProperty('erp5_site_global_id',
base64.standard_b64encode(sql))
if not quiet:
ZopeTestCase._print('done (%.3fs)\n' % (time.time() - _start))
# Release locks
......
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