From adedd2f03bece2f4c54793a63b94edec7341d2b0 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 13 Mar 2020 11:29:01 -0500 Subject: [PATCH] Use unittest.mock instead of third party mock Now that OpenStack has moved to py36 and later runtimes, we no longer need to use the third party mock library and can use the standard library unittest.mock instead. Change-Id: I100001fd0615cb55cbdbabbf0c6aa41b1729569c Signed-off-by: Sean McGinnis --- lower-constraints.txt | 1 - molecule-requirements.txt | 1 - .../tests/library/test_check_ironic_boot_config.py | 3 +-- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lower-constraints.txt b/lower-constraints.txt index a949cdd7c..992bbaddf 100644 --- a/lower-constraints.txt +++ b/lower-constraints.txt @@ -44,7 +44,6 @@ linecache2==1.0.0 MarkupSafe==1.0 mccabe==0.2.1 mistral-lib==1.2.0 -mock==2.0.0 monotonic==1.4 mox3==0.25.0 msgpack==0.5.6 diff --git a/molecule-requirements.txt b/molecule-requirements.txt index 69d6b898b..57dc64088 100644 --- a/molecule-requirements.txt +++ b/molecule-requirements.txt @@ -6,6 +6,5 @@ pytest pytest-cov pytest-html pytest-xdist -mock molecule>=2.22rc1,<3 selinux # MIT diff --git a/tripleo_validations/tests/library/test_check_ironic_boot_config.py b/tripleo_validations/tests/library/test_check_ironic_boot_config.py index b56641afa..3a89a5f53 100644 --- a/tripleo_validations/tests/library/test_check_ironic_boot_config.py +++ b/tripleo_validations/tests/library/test_check_ironic_boot_config.py @@ -13,12 +13,11 @@ # License for the specific language governing permissions and limitations # under the License. +from unittest import mock import library.check_ironic_boot_config as validation from tripleo_validations.tests import base -import mock - UUIDs = [ '13c319a4-7704-4b44-bb2e-501951879f96', '8201bb8e-be20-4a97-bcf4-91bcf7eeff86',