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: Iaa4b9af611c27deaadc0d77bd9e903e4c1bc77ac
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:57:55 -05:00 committed by YumengBao
parent f3df1987cb
commit 5d64eb21b7
7 changed files with 7 additions and 7 deletions

View File

@ -13,8 +13,8 @@
# under the License.
import json
from unittest import mock
import mock
import six

View File

@ -10,9 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from openstack import connection as sdk_connection
import testtools
from unittest import mock
from cyborgclient.osc import plugin

View File

@ -12,8 +12,8 @@
#
from cyborgclient.tests.unit.osc import fakes
import mock
from osc_lib.tests import utils
from unittest import mock
import uuid
deployable_created_at = '2019-06-24T00:00:00.000000+00:00'

View File

@ -14,10 +14,10 @@
import re
import sys
from unittest import mock
import fixtures
from keystoneauth1 import fixture
import mock
import six
from testtools import matchers

View File

@ -12,8 +12,8 @@
# under the License.
import re
from unittest import mock
import mock
from testtools import matchers
from cyborgclient.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 cyborgclient.tests.unit.v1 import shell_test_base

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import testtools
from unittest import mock
from cyborgclient.v1 import client