Fix test failure linked to new mock release
Update a test using autospec to spec to make it work with mock 1.0 Change-Id: Id84e7c47663c8177047da8eb599f81a94e728def
This commit is contained in:
parent
4674da1954
commit
0f34126998
|
@ -274,7 +274,7 @@ class MongodbQueueTests(MongodbSetupMixin, base.QueueControllerTest):
|
|||
|
||||
with mock.patch.object(cursor.Cursor,
|
||||
'next' if six.PY2 else '__next__',
|
||||
autospec=True) as method:
|
||||
spec=True) as method:
|
||||
error = pymongo.errors.ConnectionFailure()
|
||||
method.side_effect = error
|
||||
|
||||
|
|
Loading…
Reference in New Issue