diff options
author | Takashi NATSUME <natsume.takashi@lab.ntt.co.jp> | 2019-08-19 18:11:48 +0900 |
---|---|---|
committer | Eric Fried <openstack@fried.cc> | 2019-08-19 09:43:10 -0500 |
commit | 1eec451b1ba254ec4c43c77f79b0d2809d6cb9a5 (patch) | |
tree | 98ffc8abaffaedb2828b6f936428a02ca57a6963 /test-requirements.txt | |
parent | 8ea5e373381fc4152d2914742ef42a75acbbcc53 (diff) | |
download | nova-1eec451b1ba254ec4c43c77f79b0d2809d6cb9a5.tar.gz |
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
Diffstat (limited to 'test-requirements.txt')
-rw-r--r-- | test-requirements.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt index 090c5f9d76..03f220645e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 |