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: I29a92ee5a0eeffcf0f2dc1aba1229cf9a7075b25
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:59:36 -05:00
parent 67766fd4fa
commit f3fdf782fe
5 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,6 @@
fixtures>=3.0.0 # Apache-2.0/BSD
coverage!=4.4,>=4.0 # Apache-2.0
mock>=2.0.0 # BSD
testtools>=2.2.0 # MIT
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0

View File

@ -14,8 +14,7 @@
#
import sys
import mock
from unittest import mock
class FakeStdout(object):

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from tricircleclient import constants
from tricircleclient.tests.unit import utils

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from tricircleclient.tests.unit import utils
from tricircleclient.v1 import pods_cli

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from tricircleclient.tests.unit import utils
from tricircleclient.v1 import routings_cli