From b9bcae014013834bc72dc5a490eeae4876eda764 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 13 Mar 2020 11:40:44 -0500 Subject: [PATCH] Use unittest.mock instead of third party mock Now that we are py36 or later, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I9582d623727e5853637812083033a348b71551ce Signed-off-by: Sean McGinnis --- designateclient/tests/test_utils.py | 4 +--- lower-constraints.txt | 1 - test-requirements.txt | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/designateclient/tests/test_utils.py b/designateclient/tests/test_utils.py index 359d0e19..66261318 100644 --- a/designateclient/tests/test_utils.py +++ b/designateclient/tests/test_utils.py @@ -11,11 +11,9 @@ # License for the specific language governing permissions and limitations # under the License. +from unittest import mock import uuid -import mock - - from designateclient import exceptions from designateclient.tests import base from designateclient import utils diff --git a/lower-constraints.txt b/lower-constraints.txt index 2cac8e07..5bd1e9bb 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -26,7 +26,6 @@ jsonschema==2.6.0 keystoneauth1==3.4.0 linecache2==1.0.0 mccabe==0.2.1 -mock==2.0.0 monotonic==0.6 mox3==0.20.0 msgpack-python==0.4.0 diff --git a/test-requirements.txt b/test-requirements.txt index ea0363e5..4cb52f9e 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,6 @@ # Hacking already pins down pep8, pyflakes and flake8 hacking>=1.1.0,<1.2.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0 -mock>=2.0.0 # BSD oslo.config>=5.2.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 os-testr>=1.0.0 # Apache-2.0