From d528b3cee48259b946333ad80b073898b608801b Mon Sep 17 00:00:00 2001 From: Sean McGinnis <sean.mcginnis@gmail.com> Date: Tue, 24 Mar 2020 08:10:26 -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: Icc42a058851448152ddc86fded6b8808e2e704a4 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com> --- adjutant_ui/test/api_tests/test_rest_api.py | 2 +- test-requirements.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/adjutant_ui/test/api_tests/test_rest_api.py b/adjutant_ui/test/api_tests/test_rest_api.py index 1ea2bf3..2d7376d 100644 --- a/adjutant_ui/test/api_tests/test_rest_api.py +++ b/adjutant_ui/test/api_tests/test_rest_api.py @@ -10,7 +10,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -import mock +from unittest import mock from openstack_dashboard.test.test_data import utils diff --git a/test-requirements.txt b/test-requirements.txt index 1e9308f..f6a486b 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -9,7 +9,6 @@ # Hacking should appear first in case something else depends on pep8 hacking>=0.12.0,!=0.13.0,<0.14 # Apache-2.0 coverage>=4.0 # Apache-2.0 -mock>=2.0 # BSD nodeenv>=0.9.4 # BSD oslosphinx>=4.7.0 # Apache-2.0 reno>=1.8.0 # Apache-2.0