Don't pass `options` to pool creation

Options, in the pool constructor, are taken from the extra keywords.
Passing `options` generates: 'options': {'options': {}}

Change-Id: I765e34497e7184f4500f365b46d1c9dff13a2ecb
This commit is contained in:
Flavio Percoco 2015-09-10 14:13:30 +02:00
parent 8104ff488b
commit b35689d749
1 changed files with 2 additions and 4 deletions

View File

@ -150,8 +150,7 @@ class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
def test_pool_update(self):
pool_data = {'weight': 10,
'group': 'us',
'uri': 'mongodb://127.0.0.1:27017',
'options': {}}
'uri': 'mongodb://127.0.0.1:27017'}
pool = self.client.pool('test', **pool_data)
self.addCleanup(pool.delete)
@ -161,8 +160,7 @@ class QueuesV1_1PoolFunctionalTest(base.QueuesTestBase):
def test_pool_list(self):
pool_data = {'weight': 10,
'group': 'us',
'uri': 'mongodb://127.0.0.1:27017',
'options': {}}
'uri': 'mongodb://127.0.0.1:27017'}
pool = self.client.pool('test', **pool_data)
self.addCleanup(pool.delete)