tests: Use unittest.mock
Related: rhbz#1785154
This commit is contained in:
parent
cb92c839f2
commit
ce0f9c4ebf
@ -15,11 +15,11 @@
|
|||||||
# 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
|
|
||||||
from pytoml import TomlError
|
from pytoml import TomlError
|
||||||
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