Merge "Use unittest.mock instead of mock"

This commit is contained in:
Zuul 2020-06-22 11:00:52 +00:00 committed by Gerrit Code Review
commit 00727ef980
12 changed files with 11 additions and 12 deletions

View File

@ -56,7 +56,6 @@ Mako==1.0.7
marathon==0.8.6
MarkupSafe==1.0
mccabe==0.2.1
mock==2.0.0
monotonic==1.4
mox3==0.25.0
msgpack==0.5.6

View File

@ -18,7 +18,7 @@ import uuid
from barbicanclient.v1 import client as barbican_client
from barbicanclient.v1 import containers
from barbicanclient.v1 import secrets
from mock import patch
from unittest.mock import patch
from magnum.common.cert_manager import barbican_cert_manager as bcm
from magnum.common.cert_manager import cert_manager

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from oslo_config import cfg

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from magnum.common import exception
from magnum.conductor.handlers.common import trust_manager

View File

@ -15,11 +15,11 @@
# under the License.
from unittest import mock
from unittest.mock import patch
import six
from heatclient import exc
from mock import patch
from oslo_service import loopingcall
from pycadf import cadftaxonomy as taxonomy

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
import magnum.conf
from magnum.drivers.k8s_coreos_v1 import driver as k8s_coreos_dr

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from magnum.drivers.heat import driver as heat_driver
from magnum.drivers.mesos_ubuntu_v1 import driver as mesos_dr

View File

@ -13,8 +13,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from heatclient import exc

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
import magnum.conf
from magnum.drivers.heat import driver as heat_driver

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from magnum.conductor import utils
from magnum import objects

View File

@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest import mock
from unittest.mock import patch
from heatclient import exc as heatexc
from oslo_utils import uuidutils

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from mock import patch
from unittest.mock import patch
from magnum.common import exception
from magnum.drivers.k8s_fedora_atomic_v1 import driver