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: I564357caf5982a0db9be01c77e9e8c42bee932d6
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:59:50 -05:00
parent ab33eab159
commit 993563f610
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
4 changed files with 4 additions and 4 deletions

View File

@ -9,4 +9,3 @@ oslotest>=3.3.0 # Apache-2.0
testrepository>=0.0.18 # Apache-2.0/BSD
testscenarios>=0.5.0 # Apache-2.0/BSD
testtools>=2.3.0 # MIT
mock>=2.0.0 # BSD

View File

@ -14,10 +14,10 @@
from argparse import ArgumentParser
from argparse import ArgumentTypeError
from unittest import mock
# noinspection PyPackageRequirements
from datetime import datetime
import mock
from testtools import ExpectedException
from vitrageclient.tests.cli.base import CliTestCase

View File

@ -13,11 +13,11 @@
# under the License.
from argparse import ArgumentParser
from argparse import ArgumentTypeError
from unittest import mock
import json
# noinspection PyPackageRequirements
import mock
# noinspection PyPackageRequirements
import six
from testtools import ExpectedException

View File

@ -12,7 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from oslotest import base
from vitrageclient import exceptions as exc