Merge "Use unittest.mock instead of third party mock"

This commit is contained in:
Zuul 2020-04-06 15:12:09 +00:00 committed by Gerrit Code Review
commit af89f7053f
9 changed files with 8 additions and 11 deletions

View File

@ -14,7 +14,6 @@ iso8601==0.1.11
keystoneauth1==3.4.0 keystoneauth1==3.4.0
linecache2==1.0.0 linecache2==1.0.0
mccabe==0.2.1 mccabe==0.2.1
mock==2.0.0
netaddr==0.7.18 netaddr==0.7.18
netifaces==0.10.4 netifaces==0.10.4
os-client-config==1.28.0 os-client-config==1.28.0

View File

@ -13,11 +13,11 @@
# under the License. # under the License.
import threading import threading
from unittest import mock
import warnings import warnings
import eventlet import eventlet
from eventlet import greenthread from eventlet import greenthread
import mock
from oslotest import base as test_base from oslotest import base as test_base
import six import six

View File

@ -13,9 +13,9 @@
# under the License. # under the License.
import logging import logging
from unittest import mock
import fixtures import fixtures
import mock
from oslotest import base as test_base from oslotest import base as test_base
from oslo_utils import excutils from oslo_utils import excutils

View File

@ -16,8 +16,8 @@ import fnmatch as standard_fnmatch
import ntpath import ntpath
import posixpath import posixpath
import sys import sys
from unittest import mock
import mock
from oslotest import base from oslotest import base
import six import six

View File

@ -15,8 +15,8 @@
import contextlib import contextlib
import socket import socket
from unittest import mock
import mock
import netifaces import netifaces
from oslotest import base as test_base from oslotest import base as test_base
import six import six

View File

@ -18,9 +18,9 @@
import collections import collections
import copy import copy
import math import math
from unittest import mock
import ddt import ddt
import mock
from oslotest import base as test_base from oslotest import base as test_base
import six import six
import testscenarios import testscenarios

View File

@ -17,9 +17,9 @@ import calendar
import datetime import datetime
import logging import logging
import time import time
from unittest import mock
import iso8601 import iso8601
import mock
from oslotest import base as test_base from oslotest import base as test_base
from testtools import matchers from testtools import matchers

View File

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

View File

@ -17,9 +17,6 @@ stestr>=2.0.0 # Apache-2.0
# deps = {[testenv]deps} coverage # deps = {[testenv]deps} coverage
coverage!=4.4,>=4.0 # Apache-2.0 coverage!=4.4,>=4.0 # Apache-2.0
# mocking framework
mock>=2.0.0 # BSD
# used for oslotest cross-testing scripts # used for oslotest cross-testing scripts
oslo.config>=5.2.0 # Apache-2.0 oslo.config>=5.2.0 # Apache-2.0