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: Ib2653b7490922c10763321572390fca3aaeafa33
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2020-04-18 11:57:15 -05:00 committed by Alex Schultz
parent 7553cdba7c
commit 6ad9b29f26
8 changed files with 8 additions and 8 deletions

View File

@ -15,8 +15,8 @@
import collections import collections
import inspect import inspect
import json import json
import mock
import tenacity import tenacity
from unittest import mock
from paunch.builder import base as basebuilder from paunch.builder import base as basebuilder
from paunch.builder import compose1 from paunch.builder import compose1

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from paunch.builder import compose1 from paunch.builder import compose1
from paunch.tests import test_builder_base as tbb from paunch.tests import test_builder_base as tbb

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from paunch.builder import podman from paunch.builder import podman
from paunch.tests import test_builder_base as base from paunch.tests import test_builder_base as base

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
import paunch import paunch
from paunch.tests import base from paunch.tests import base

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock
from testtools import matchers from testtools import matchers
from unittest import mock
from paunch import runner from paunch import runner
from paunch.tests import base from paunch.tests import base

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from paunch.tests import base from paunch.tests import base
from paunch.utils import common from paunch.utils import common

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock from unittest import mock
from paunch.tests import base from paunch.tests import base
from paunch.utils import systemctl from paunch.utils import systemctl

View File

@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import mock
import os import os
import tempfile import tempfile
from unittest import mock
from paunch.tests import base from paunch.tests import base
from paunch.utils import systemd from paunch.utils import systemd