Commit 5cc74fca authored by Grégory Wisniewski's avatar Grégory Wisniewski

Database parameter is now a string parsed by manager.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1390 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent ba02effc
...@@ -76,7 +76,7 @@ class NeoTestBase(unittest.TestCase): ...@@ -76,7 +76,7 @@ class NeoTestBase(unittest.TestCase):
assert master_number >= 1 and master_number <= 10 assert master_number >= 1 and master_number <= 10
assert index >= 0 and index <= 9 assert index >= 0 and index <= 9
masters = [('127.0.0.1', 10010 + i) for i in xrange(master_number)] masters = [('127.0.0.1', 10010 + i) for i in xrange(master_number)]
database = (DB_USER, DB_PASSWD, '%s%d' % (prefix, index)) database = '%s@%s%s' % (DB_USER, prefix, index)
return Mock({ return Mock({
'getCluster': cluster, 'getCluster': cluster,
'getName': 'storage', 'getName': 'storage',
...@@ -85,6 +85,7 @@ class NeoTestBase(unittest.TestCase): ...@@ -85,6 +85,7 @@ class NeoTestBase(unittest.TestCase):
'getDatabase': database, 'getDatabase': database,
'getUUID': uuid, 'getUUID': uuid,
'getReset': False, 'getReset': False,
'getAdapter': 'MySQL',
}) })
# XXX: according to changes with namespaced UUIDs, it would be better to # XXX: according to changes with namespaced UUIDs, it would be better to
......
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