Tests: autospecs all the mock.patch usages
By default, mock.patch's autospec argument is None, meaning that there's no signature checking for the patched methods and functions. oslotest.mock_fixture.patch_mock_module fixes a few issues within mock.patch functions, as well as setting autospec=True by default, unless otherwise specified or new_callable, create, spec arguments are passed in. Co-Authored-By: Claudiu Belu <cbelu@cloudbasesolutions.com> Change-Id: I4484e63c97bd1cdde3d88855eabe7545784f365e Closes-Bug: #1735588
This commit is contained in:
committed by
Eric Fried
parent
8ea5e37338
commit
1eec451b1b
@@ -15,7 +15,7 @@ pycodestyle>=2.0.0 # MIT License
|
||||
python-barbicanclient>=4.5.2 # Apache-2.0
|
||||
python-ironicclient!=2.7.1,>=2.7.0 # Apache-2.0
|
||||
requests-mock>=1.2.0 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
oslotest>=3.8.0 # Apache-2.0
|
||||
stestr>=1.0.0 # Apache-2.0
|
||||
osprofiler>=1.4.0 # Apache-2.0
|
||||
testresources>=2.0.0 # Apache-2.0/BSD
|
||||
|
||||
Reference in New Issue
Block a user