diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-04-18 11:57:28 -0500 |
---|---|---|
committer | Moisés Guimarães <moguimar@redhat.com> | 2020-06-09 01:16:37 +0000 |
commit | 9577fe03940662bb5e44cdffbdbe4f306df9911d (patch) | |
tree | d6767ce494c7299b3c6c75a8fcf66644a698170d /barbicanclient | |
parent | 69a14917e5f98f82dd1f4cdf33a49e6f3f708c13 (diff) | |
download | python-barbicanclient-9577fe03940662bb5e44cdffbdbe4f306df9911d.tar.gz |
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: I3b728aee2f07ad547ee75cabf78659cef1233bc5
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Diffstat (limited to 'barbicanclient')
-rw-r--r-- | barbicanclient/tests/test_client.py | 3 | ||||
-rw-r--r-- | barbicanclient/tests/v1/test_containers.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/barbicanclient/tests/test_client.py b/barbicanclient/tests/test_client.py index c4a2033..87c7296 100644 --- a/barbicanclient/tests/test_client.py +++ b/barbicanclient/tests/test_client.py @@ -13,8 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +from unittest import mock + from keystoneauth1 import session -import mock from requests_mock.contrib import fixture import testtools diff --git a/barbicanclient/tests/v1/test_containers.py b/barbicanclient/tests/v1/test_containers.py index 8255274..67eaa26 100644 --- a/barbicanclient/tests/v1/test_containers.py +++ b/barbicanclient/tests/v1/test_containers.py @@ -13,7 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -import mock +from unittest import mock + from oslo_serialization import jsonutils from oslo_utils import timeutils import six |