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

View File

@ -16,9 +16,9 @@
import io
import json
import tempfile
from unittest import mock
import fixtures
import mock
import testtools
from metalsmith import _cmd

View File

@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
from unittest import mock
from metalsmith import _instance
from metalsmith.test import test_provisioner

View File

@ -14,8 +14,8 @@
# limitations under the License.
import json
from unittest import mock
import mock
import testtools
from metalsmith import instance_config

View File

@ -13,8 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from unittest import mock
import fixtures
import mock
from openstack import exceptions as os_exc
import requests
import testtools

View File

@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
from unittest import mock
import testtools
from metalsmith import _scheduler

View File

@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import mock
from unittest import mock
import testtools
from metalsmith import exceptions

View File

@ -6,7 +6,6 @@ doc8>=0.6.0 # Apache-2.0
flake8-import-order>=0.13 # LGPLv3
fixtures>=3.0.0 # Apache-2.0/BSD
hacking>=3.0.0,<3.1.0 # Apache-2.0
mock>=2.0 # BSD
stestr>=1.0.0 # Apache-2.0
testtools>=2.2.0 # MIT
Pygments>=2.2.0 # BSD