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: Ie5ee60235bafc1e7b3461dee29b83fb62125178e
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:54:18 -05:00
parent e225e6d1bd
commit 92c934a8e3
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8
12 changed files with 12 additions and 12 deletions

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import testtools
from unittest import mock
import uuid
import eventlet

View File

@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import socket
import testtools
from unittest import mock
from xml.etree import ElementTree
import eventlet

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import testtools
from unittest import mock
from xml.etree import ElementTree
import eventlet

View File

@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import os
import testtools
from unittest import mock
from stevedore import driver

View File

@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import socket
import testtools
from unittest import mock
import uuid
import eventlet

View File

@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import socket
import testtools
import threading
from unittest import mock
import uuid
import eventlet

View File

@ -13,10 +13,10 @@
# limitations under the License.
import libvirt
import mock
import testtools
import threading
import time
from unittest import mock
import uuid
import eventlet

View File

@ -14,8 +14,8 @@
import eventlet
import libvirt
import mock
import testtools
from unittest import mock
from masakarimonitors.introspectiveinstancemonitor import instance

View File

@ -13,8 +13,8 @@
# limitations under the License.
import libvirt
import mock
import testtools
from unittest import mock
import uuid

View File

@ -12,9 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import socket
import testtools
from unittest import mock
import eventlet
from oslo_utils import timeutils

View File

@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
import testtools
from unittest import mock
import yaml
import eventlet

View File

@ -13,8 +13,8 @@
# under the License.
import textwrap
from unittest import mock
import mock
import pycodestyle
import testtools