diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-03-13 11:40:44 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-03-13 18:30:14 +0000 |
commit | b9bcae014013834bc72dc5a490eeae4876eda764 (patch) | |
tree | 4414911d1bd101caf70fe429bbc83fb91d23dbc4 | |
parent | 1c8e5e801365055a2a7c37b57dbfd1e0ea7c8716 (diff) | |
download | python-designateclient-b9bcae014013834bc72dc5a490eeae4876eda764.tar.gz |
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 <sean.mcginnis@gmail.com>
-rw-r--r-- | designateclient/tests/test_utils.py | 4 | ||||
-rw-r--r-- | lower-constraints.txt | 1 | ||||
-rw-r--r-- | test-requirements.txt | 1 |
3 files changed, 1 insertions, 5 deletions
diff --git a/designateclient/tests/test_utils.py b/designateclient/tests/test_utils.py index 359d0e1..6626131 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 2cac8e0..5bd1e9b 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 ea0363e..4cb52f9 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 |