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

This commit is contained in:
Zuul 2020-04-17 19:02:45 +00:00 committed by Gerrit Code Review
commit e5142bbf03
7 changed files with 7 additions and 9 deletions

View File

@ -19,7 +19,6 @@ keystoneauth1==3.4.0
linecache2==1.0.0
MarkupSafe==1.0
mccabe==0.2.1
mock==3.0.0
mox3==0.20.0
mypy==0.720
netaddr==0.7.18

View File

@ -21,9 +21,9 @@ import os
import shutil
import sys
import tempfile
from unittest import mock
import fixtures
import mock
from oslotest import base
import testscenarios

View File

@ -15,9 +15,9 @@
import io
import sys
import textwrap
from unittest import mock
import fixtures
import mock
from oslotest import base
import tempfile
import testscenarios

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_config import sphinxconfiggen

View File

@ -11,8 +11,8 @@
# under the License.
import textwrap
from unittest import mock
import mock
from oslotest import base
from oslo_config import cfg

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 oslo_config import cfg

View File

@ -21,9 +21,6 @@ oslo.log>=3.36.0 # Apache-2.0
# deps = {[testenv]deps} coverage
coverage!=4.4,>=4.0 # Apache-2.0
# we can switch to unittest.mock once we drop support for Python 3.6 as that
# includes https://bugs.python.org/issue32933
mock>=3.0.0 # BSD
requests_mock>=1.5.0 # Apache-2.0
# Bandit security code scanner