diff options
author | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-04-18 11:52:59 -0500 |
---|---|---|
committer | Sean McGinnis <sean.mcginnis@gmail.com> | 2020-06-09 09:59:03 -0500 |
commit | 5c2557dbaf9aeee96d7ecc5b93c4620acd290215 (patch) | |
tree | 93d1e5f9c7d2f9a80785f95f1f3d0e7bfe462a60 | |
parent | b36a83ec5248b9e4a2306376081d183903745742 (diff) | |
download | heat-cfntools-5c2557dbaf9aeee96d7ecc5b93c4620acd290215.tar.gz |
Use unittest.mock instead of third party mock
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: Ib6e4e7f89a9990cfb42afa209878812340109ecf
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
-rw-r--r-- | heat_cfntools/tests/test_cfn_helper.py | 2 | ||||
-rw-r--r-- | heat_cfntools/tests/test_cfn_hup.py | 2 | ||||
-rw-r--r-- | lower-constraints.txt | 1 | ||||
-rw-r--r-- | test-requirements.txt | 1 |
4 files changed, 2 insertions, 4 deletions
diff --git a/heat_cfntools/tests/test_cfn_helper.py b/heat_cfntools/tests/test_cfn_helper.py index 0255376..962855e 100644 --- a/heat_cfntools/tests/test_cfn_helper.py +++ b/heat_cfntools/tests/test_cfn_helper.py @@ -17,10 +17,10 @@ import json import os import tempfile +from unittest import mock import boto.cloudformation as cfn import fixtures -import mock import testtools import testtools.matchers as ttm diff --git a/heat_cfntools/tests/test_cfn_hup.py b/heat_cfntools/tests/test_cfn_hup.py index b182f92..7a978b3 100644 --- a/heat_cfntools/tests/test_cfn_hup.py +++ b/heat_cfntools/tests/test_cfn_hup.py @@ -14,9 +14,9 @@ # under the License. import tempfile +from unittest import mock import fixtures -import mock import testtools from heat_cfntools.cfntools import cfn_helper diff --git a/lower-constraints.txt b/lower-constraints.txt index 80833e6..37b8138 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -1,5 +1,4 @@ boto==2.32.1 -mock==1.0 pbr==2.0.0 psutil==1.1.1 six==1.9.0 diff --git a/test-requirements.txt b/test-requirements.txt index bbc0a08..4a070b2 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,4 +1,3 @@ hacking>=3.0.1,<3.1.0 # Apache-2.0 -mock>=1.0 stestr>=2.0.0 testtools>=0.9.34 |