From 98f7e150adb43501e1b9a1bc7ba48ffff02b6b56 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Fri, 3 Apr 2020 17:05:02 -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: Id1f5f15e7d6c7edc5003f8f1947b7fb8ff783bbe Signed-off-by: Sean McGinnis --- test-requirements.txt | 1 - tripleo_repos/tests/test_main.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 1ee7d7a..8738876 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -15,5 +15,4 @@ testscenarios>=0.4 # Apache-2.0/BSD testtools>=1.4.0 # MIT stestr>=2.0.0 # Apache-2.0 fixtures>=3.0.0 # Apache-2.0/BSD -mock>=2.0 # BSD diff --git a/tripleo_repos/tests/test_main.py b/tripleo_repos/tests/test_main.py index f3cbbae..71b4a55 100644 --- a/tripleo_repos/tests/test_main.py +++ b/tripleo_repos/tests/test_main.py @@ -14,9 +14,9 @@ import subprocess import sys +from unittest import mock import ddt -import mock import testtools from tripleo_repos import main