From e3eef9b56fa90b7e1b1d597af3472be895d497dc Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Sat, 18 Apr 2020 11:54:32 -0500 Subject: [PATCH] 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: I8547aec13aa28fecf75f957e1f2ca7f5c56628ea Signed-off-by: Sean McGinnis --- .../tests/unit/actions/openstack/test_openstack_actions.py | 2 +- test-requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mistral_extra/tests/unit/actions/openstack/test_openstack_actions.py b/mistral_extra/tests/unit/actions/openstack/test_openstack_actions.py index 27d8b50..dad3f56 100644 --- a/mistral_extra/tests/unit/actions/openstack/test_openstack_actions.py +++ b/mistral_extra/tests/unit/actions/openstack/test_openstack_actions.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import mock +from unittest import mock from mistral_extra.actions.openstack import actions from oslo_config import cfg diff --git a/test-requirements.txt b/test-requirements.txt index e0bc228..b8d6388 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -8,6 +8,5 @@ doc8>=0.6.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0 unittest2>=1.1.0 # BSD -mock>=2.0.0 # BSD requests-mock>=1.2.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD