tests: Use mock from unittest
This commit is contained in:
parent
a0fce98109
commit
35348636c5
@ -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 \
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user