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:
parent
a83a360d46
commit
9e3c61b684
@ -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 muranopkgcheck import error
|
from muranopkgcheck import error
|
||||||
from muranopkgcheck.tests import base
|
from muranopkgcheck.tests import base
|
||||||
|
@ -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 muranopkgcheck import log
|
from muranopkgcheck import log
|
||||||
from muranopkgcheck.tests import base
|
from muranopkgcheck.tests import base
|
||||||
|
@ -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 muranopkgcheck import error
|
from muranopkgcheck import error
|
||||||
from muranopkgcheck import manager
|
from muranopkgcheck import manager
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
import mock
|
from unittest import mock
|
||||||
|
|
||||||
from muranopkgcheck.tests import test_validator_helpers as helpers
|
from muranopkgcheck.tests import test_validator_helpers as helpers
|
||||||
from muranopkgcheck.validators import manifest
|
from muranopkgcheck.validators import manifest
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from copy import deepcopy
|
from copy import deepcopy
|
||||||
import mock
|
from unittest import mock
|
||||||
|
|
||||||
from muranopkgcheck.tests import test_validator_helpers as helpers
|
from muranopkgcheck.tests import test_validator_helpers as helpers
|
||||||
from muranopkgcheck.validators import muranopl
|
from muranopkgcheck.validators import muranopl
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
import mock
|
from unittest import mock
|
||||||
|
|
||||||
from muranopkgcheck.tests import test_validator_helpers as helpers
|
from muranopkgcheck.tests import test_validator_helpers as helpers
|
||||||
from muranopkgcheck.validators import package
|
from muranopkgcheck.validators import package
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import mock
|
from unittest import mock
|
||||||
import zipfile
|
import zipfile
|
||||||
|
|
||||||
import yaml
|
import yaml
|
||||||
|
@ -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 muranopkgcheck import manager
|
from muranopkgcheck import manager
|
||||||
from muranopkgcheck import plugin
|
from muranopkgcheck import plugin
|
||||||
|
@ -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 muranopkgcheck.tests import test_validator_helpers as helpers
|
from muranopkgcheck.tests import test_validator_helpers as helpers
|
||||||
from muranopkgcheck.validators import ui
|
from muranopkgcheck.validators import ui
|
||||||
|
@ -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
|
|
||||||
import unittest
|
import unittest
|
||||||
|
from unittest import mock
|
||||||
|
|
||||||
from muranopkgcheck.validators import base
|
from muranopkgcheck.validators import base
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user