Fix tests failing in gate
gate-cinder-python27 gate-cinder-python34 is reporting failures where it wasn't before. This is all due to new mock version 1.1.0. This patch fixed the tests to pass the gate. Some of these errors are actual errors in our test code, while other are changes to Mock syntax. Closes-Bug: #1473454 Change-Id: If8eabfeacacc221e92dfece9f4937875bd70751e
This commit is contained in:
@@ -106,7 +106,7 @@ def _patch_mock_to_raise_for_invalid_assert_calls():
|
||||
'assert_called_with',
|
||||
'assert_called_once_with',
|
||||
'assert_has_calls',
|
||||
'assert_any_calls']
|
||||
'assert_any_call']
|
||||
|
||||
if name.startswith('assert') and name not in valid_asserts:
|
||||
raise AttributeError('%s is not a valid mock assert method'
|
||||
|
||||
Reference in New Issue
Block a user