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: Ib1f840f0cb778219f7640a2ca307847a090de6aa
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-03-31 13:59:44 -05:00
parent c483dee1f3
commit ced4d8eae4
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
8 changed files with 12 additions and 8 deletions

View File

@ -19,7 +19,6 @@ keystoneauth1==3.4.0
linecache2==1.0.0
MarkupSafe==1.0
mccabe==0.2.1
mock==2.0.0
mox3==0.20.0
msgpack-python==0.4.0
netaddr==0.7.18

View File

@ -13,7 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from oslotest import base as test_base
from oslo_policy import _checks

View File

@ -14,7 +14,8 @@
# under the License.
import json
import mock
from unittest import mock
from oslo_serialization import jsonutils
from requests_mock.contrib import fixture as rm_fixture
import six.moves.urllib.parse as urlparse

View File

@ -10,9 +10,9 @@
# under the License.
import operator
from unittest import mock
import warnings
import mock
from oslo_config import cfg
import stevedore
import testtools

View File

@ -13,7 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from oslotest import base as test_base
import six

View File

@ -16,8 +16,8 @@
"""Test of Policy Engine"""
import os
from unittest import mock
import mock
from oslo_config import cfg
from oslo_context import context
from oslo_serialization import jsonutils

View File

@ -14,7 +14,8 @@
# under the License.
import copy
import mock
from unittest import mock
from oslo_serialization import jsonutils
from oslo_policy import shell

View File

@ -10,7 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from oslotest import base
from oslo_policy import sphinxpolicygen