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

View File

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

View File

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

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from muranopkgcheck import error
from muranopkgcheck import manager

View File

@ -13,7 +13,7 @@
# under the License.
import mock
from unittest import mock
from muranopkgcheck.tests import test_validator_helpers as helpers
from muranopkgcheck.validators import manifest

View File

@ -13,7 +13,7 @@
# under the License.
from copy import deepcopy
import mock
from unittest import mock
from muranopkgcheck.tests import test_validator_helpers as helpers
from muranopkgcheck.validators import muranopl

View File

@ -13,7 +13,7 @@
# under the License.
import mock
from unittest import mock
from muranopkgcheck.tests import test_validator_helpers as helpers
from muranopkgcheck.validators import package

View File

@ -13,7 +13,7 @@
# under the License.
from io import BytesIO
import mock
from unittest import mock
import zipfile
import yaml

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from muranopkgcheck import manager
from muranopkgcheck import plugin

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from unittest import mock
from muranopkgcheck.tests import test_validator_helpers as helpers
from muranopkgcheck.validators import ui

View File

@ -12,8 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
import unittest
from unittest import mock
from muranopkgcheck.validators import base