summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 11:42:35 -0500
committerSean McGinnis <sean.mcginnis@gmail.com>2020-03-13 11:42:35 -0500
commit210865e90db5598d1d3d01da3fcd085080299481 (patch)
treec6b0d3bbeb61814caa98cc6095ceb71bc132e47a
parent91073f4ea1d919604dc161a231b21de006a2a0cd (diff)
downloadpycadf-210865e90db5598d1d3d01da3fcd085080299481.tar.gz
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 <sean.mcginnis@gmail.com>
-rw-r--r--lower-constraints.txt1
-rw-r--r--pycadf/tests/test_cadf_spec.py3
-rw-r--r--test-requirements.txt1
3 files changed, 1 insertions, 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