summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 11:53:51 -0500
committerSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 13:50:53 -0500
commitbc96c23a9c44cee8f54d7349b288a406cec3f10a (patch)
tree3d1c87e110b46b2b1f7338e5632aeada7fc2a9e7
parentc7bb5d65abb4c9bc3a1d8f480018a9d661f7b36e (diff)
downloados-client-config-bc96c23a9c44cee8f54d7349b288a406cec3f10a.tar.gz
Use unittest.mock instead of third party mockussuri-em2.1.0
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: Ieb1746b1ad7571cb87f5b1e7a6876ce72e6b76c3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r--lower-constraints.txt1
-rw-r--r--os_client_config/tests/test_cloud_config.py2
-rw-r--r--test-requirements.txt1
3 files changed, 1 insertions, 3 deletions
diff --git a/lower-constraints.txt b/lower-constraints.txt
index 3e9ce30..d27b6b0 100644
--- a/lower-constraints.txt
+++ b/lower-constraints.txt
@@ -20,7 +20,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
netaddr==0.7.18
diff --git a/os_client_config/tests/test_cloud_config.py b/os_client_config/tests/test_cloud_config.py
index 06ea0fd..2e80163 100644
--- a/os_client_config/tests/test_cloud_config.py
+++ b/os_client_config/tests/test_cloud_config.py
@@ -11,10 +11,10 @@
# under the License.
import copy
+from unittest import mock
from keystoneauth1 import exceptions as ksa_exceptions
from keystoneauth1 import session as ksa_session
-import mock
from openstack.config import cloud_region
diff --git a/test-requirements.txt b/test-requirements.txt
index 59558cb..8a6808e 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -8,7 +8,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
extras>=1.0.0 # MIT
fixtures>=3.0.0 # Apache-2.0/BSD
jsonschema>=2.6.0 # MIT
-mock>=2.0.0 # BSD
python-glanceclient>=2.8.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
oslotest>=3.2.0 # Apache-2.0