tests: Use mock from unittest

This commit is contained in:
Brian C. Lane 2020-01-15 14:41:54 -08:00
parent a0fce98109
commit 35348636c5
3 changed files with 2 additions and 3 deletions

View File

@ -13,7 +13,6 @@ RUN dnf -y install \
python3-gevent \ python3-gevent \
python3-magic \ python3-magic \
python3-mako \ python3-mako \
python3-mock \
python3-pocketlint \ python3-pocketlint \
python3-pycdlib \ python3-pycdlib \
python3-pylint \ python3-pylint \

View File

@ -15,10 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
import os import os
import mock
import shutil import shutil
import tempfile import tempfile
import unittest import unittest
from unittest import mock
import pylorax.api.recipes as recipes import pylorax.api.recipes as recipes
from pylorax.api.compose import add_customizations, customize_ks_template from pylorax.api.compose import add_customizations, customize_ks_template

View File

@ -15,10 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
import os import os
import mock
import shutil import shutil
import tempfile import tempfile
import unittest import unittest
from unittest import mock
import pylorax.api.recipes as recipes import pylorax.api.recipes as recipes
from pylorax.api.workspace import workspace_dir, workspace_read, workspace_write, workspace_delete from pylorax.api.workspace import workspace_dir, workspace_read, workspace_write, workspace_delete