From 35348636c54201e099d8944375ff80b1d48ff34c Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 15 Jan 2020 14:41:54 -0800 Subject: [PATCH] tests: Use mock from unittest --- Dockerfile.test | 1 - tests/pylorax/test_recipes.py | 2 +- tests/pylorax/test_workspace.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile.test b/Dockerfile.test index 2a9e55cc..484d02f5 100644 --- a/Dockerfile.test +++ b/Dockerfile.test @@ -13,7 +13,6 @@ RUN dnf -y install \ python3-gevent \ python3-magic \ python3-mako \ - python3-mock \ python3-pocketlint \ python3-pycdlib \ python3-pylint \ diff --git a/tests/pylorax/test_recipes.py b/tests/pylorax/test_recipes.py index 835b3304..24c190d1 100644 --- a/tests/pylorax/test_recipes.py +++ b/tests/pylorax/test_recipes.py @@ -15,10 +15,10 @@ # along with this program. If not, see . # import os -import mock import shutil import tempfile import unittest +from unittest import mock import pylorax.api.recipes as recipes from pylorax.api.compose import add_customizations, customize_ks_template diff --git a/tests/pylorax/test_workspace.py b/tests/pylorax/test_workspace.py index c6b950ba..7f8517fe 100644 --- a/tests/pylorax/test_workspace.py +++ b/tests/pylorax/test_workspace.py @@ -15,10 +15,10 @@ # along with this program. If not, see . # import os -import mock import shutil import tempfile import unittest +from unittest import mock import pylorax.api.recipes as recipes from pylorax.api.workspace import workspace_dir, workspace_read, workspace_write, workspace_delete