From 210865e90db5598d1d3d01da3fcd085080299481 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 13 Mar 2020 11:42:35 -0500 Subject: Use unittest.mock instead of third party mock Now that we don't need to support py27 we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: I1dfdb05ddf78cd8243f31956ccf8173b2059ad33 Signed-off-by: Sean McGinnis --- lower-constraints.txt | 1 - pycadf/tests/test_cadf_spec.py | 3 +-- test-requirements.txt | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index 10d033e..d120b45 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -17,7 +17,6 @@ keystoneauth1==3.4.0 linecache2==1.0.0 MarkupSafe==1.0 mccabe==0.2.1 -mock==2.0.0 monotonic==0.6 mox3==0.20.0 msgpack-python==0.4.0 diff --git a/pycadf/tests/test_cadf_spec.py b/pycadf/tests/test_cadf_spec.py index 416638f..e448218 100644 --- a/pycadf/tests/test_cadf_spec.py +++ b/pycadf/tests/test_cadf_spec.py @@ -13,10 +13,9 @@ # the License. import time +from unittest import mock import uuid -import mock - from pycadf import attachment from pycadf import cadftype from pycadf import credential diff --git a/test-requirements.txt b/test-requirements.txt index 84f3c75..fafbf15 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,7 +8,6 @@ flake8-docstrings==0.2.1.post1 # MIT coverage!=4.4,>=4.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD python-subunit>=1.0.0 # Apache-2.0/BSD -mock>=2.0.0 # BSD stestr>=2.0.0 # Apache-2.0 testtools>=2.2.0 # MIT -- cgit v1.2.1