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 # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import mock
import testtools import testtools
from unittest import mock
import uuid import uuid
import eventlet import eventlet

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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