Use unittest.mock instead of mock

The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: If7d749018d7a69906f7f4763b147f09cfadd6692
This commit is contained in:
Hervé Beraud 2020-06-09 12:07:33 +02:00 committed by Jakub Skunda
parent 54c74fb8e3
commit dcd7fad34c
3 changed files with 3 additions and 4 deletions

View File

@ -21,8 +21,8 @@ import os
import tempfile import tempfile
import httmock import httmock
import mock from unittest import mock
from mock import MagicMock from unittest.mock import MagicMock
import unittest import unittest
from refstack_client import refstack_client as rc from refstack_client import refstack_client as rc

View File

@ -20,7 +20,7 @@ import subprocess
import tempfile import tempfile
import httmock import httmock
import mock from unittest import mock
import unittest import unittest
import refstack_client.list_parser as parser import refstack_client.list_parser as parser

View File

@ -4,6 +4,5 @@ flake8<3.8.0
docutils>=0.11 # OSI-Approved Open Source, Public Domain docutils>=0.11 # OSI-Approved Open Source, Public Domain
stestr>=1.1.0 # Apache-2.0 stestr>=1.1.0 # Apache-2.0
testtools>=0.9.34 testtools>=0.9.34
mock
coverage coverage
httmock httmock