Merge "Use unittest.mock instead of PyPI mock"

This commit is contained in:
Zuul 2020-04-03 13:29:25 +00:00 committed by Gerrit Code Review
commit 0c1b6c8a4b
4 changed files with 3 additions and 7 deletions

View File

@ -13,9 +13,9 @@
# under the License. # under the License.
import unittest import unittest
from unittest import mock
import jinja2 import jinja2
import mock
from kolla_ansible import exception from kolla_ansible import exception
from kolla_ansible import filters from kolla_ansible import filters

View File

@ -39,7 +39,6 @@ keystoneauth1==3.4.0
linecache2==1.0.0 linecache2==1.0.0
MarkupSafe==1.0 MarkupSafe==1.0
mccabe==0.2.1 mccabe==0.2.1
mock==2.0.0
monotonic==1.4 monotonic==1.4
mox3==0.25.0 mox3==0.25.0
msgpack==0.5.6 msgpack==0.5.6

View File

@ -19,11 +19,8 @@ import copy
import imp import imp
import os import os
import sys import sys
from unittest import mock
try:
from unittest import mock
except ImportError:
import mock
from docker import errors as docker_error from docker import errors as docker_error
from docker.types import Ulimit from docker.types import Ulimit
from oslotest import base from oslotest import base

View File

@ -16,9 +16,9 @@
import imp import imp
import os import os
import sys import sys
from unittest import mock
from io import StringIO from io import StringIO
import mock
from oslotest import base from oslotest import base