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: I7268264d3e2c98474604ec5f46298d36b7d32f18
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:57:24 -05:00 committed by zhurong
parent 77715e7057
commit 11577d6cf0
7 changed files with 7 additions and 7 deletions

View File

@ -14,8 +14,8 @@
# under the License.
import argparse
from unittest import mock
import mock
import testtools
from aodhclient.v2 import alarm_cli

View File

@ -14,7 +14,7 @@
# under the License.
import mock
from unittest import mock
import testtools

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import testtools
from unittest import mock
from aodhclient.v2 import alarm

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 aodhclient import exceptions

View File

@ -11,8 +11,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import testtools
from unittest import mock
from aodhclient import exceptions
from aodhclient.v2 import quota_cli

View File

@ -13,9 +13,9 @@
# under the License.
import sys
from unittest import mock
from keystoneauth1 import exceptions
import mock
import six
import testtools

View File

@ -32,7 +32,6 @@ test =
testtools>=1.4.0
pifpaf[gnocchi]>=0.23
gnocchi[postgresql,file]
mock>=1.2 # BSD
[entry_points]
console_scripts =