summaryrefslogtreecommitdiff
path: root/saharaclient/tests/unit/osc/v1
diff options
context:
space:
mode:
Diffstat (limited to 'saharaclient/tests/unit/osc/v1')
-rw-r--r--saharaclient/tests/unit/osc/v1/fakes.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_clusters.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_data_sources.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_images.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_job_binaries.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_job_templates.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_job_types.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_jobs.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_node_group_templates.py2
-rw-r--r--saharaclient/tests/unit/osc/v1/test_plugins.py3
-rw-r--r--saharaclient/tests/unit/osc/v1/test_utils.py2
11 files changed, 12 insertions, 11 deletions
diff --git a/saharaclient/tests/unit/osc/v1/fakes.py b/saharaclient/tests/unit/osc/v1/fakes.py
index af374b8..a26a23e 100644
--- a/saharaclient/tests/unit/osc/v1/fakes.py
+++ b/saharaclient/tests/unit/osc/v1/fakes.py
@@ -14,8 +14,8 @@
# limitations under the License.
-import mock
from osc_lib.tests import utils
+from unittest import mock
class TestDataProcessing(utils.TestCommand):
diff --git a/saharaclient/tests/unit/osc/v1/test_clusters.py b/saharaclient/tests/unit/osc/v1/test_clusters.py
index 7695ad1..0437c5f 100644
--- a/saharaclient/tests/unit/osc/v1/test_clusters.py
+++ b/saharaclient/tests/unit/osc/v1/test_clusters.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
+from unittest import mock
from saharaclient.api import cluster_templates as api_ct
from saharaclient.api import clusters as api_cl
diff --git a/saharaclient/tests/unit/osc/v1/test_data_sources.py b/saharaclient/tests/unit/osc/v1/test_data_sources.py
index c37d8ab..e5556f8 100644
--- a/saharaclient/tests/unit/osc/v1/test_data_sources.py
+++ b/saharaclient/tests/unit/osc/v1/test_data_sources.py
@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
import testtools
+from unittest import mock
from saharaclient.api import data_sources as api_ds
from saharaclient.osc.v1 import data_sources as osc_ds
diff --git a/saharaclient/tests/unit/osc/v1/test_images.py b/saharaclient/tests/unit/osc/v1/test_images.py
index 006a0b4..1ea188b 100644
--- a/saharaclient/tests/unit/osc/v1/test_images.py
+++ b/saharaclient/tests/unit/osc/v1/test_images.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
+from unittest import mock
from saharaclient.api import images as api_images
from saharaclient.osc.v1 import images as osc_images
diff --git a/saharaclient/tests/unit/osc/v1/test_job_binaries.py b/saharaclient/tests/unit/osc/v1/test_job_binaries.py
index 0b4b66e..96da3c3 100644
--- a/saharaclient/tests/unit/osc/v1/test_job_binaries.py
+++ b/saharaclient/tests/unit/osc/v1/test_job_binaries.py
@@ -13,9 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_u
import testtools
+from unittest import mock
from saharaclient.api import job_binaries as api_jb
from saharaclient.osc.v1 import job_binaries as osc_jb
diff --git a/saharaclient/tests/unit/osc/v1/test_job_templates.py b/saharaclient/tests/unit/osc/v1/test_job_templates.py
index 9b6b711..1da4597 100644
--- a/saharaclient/tests/unit/osc/v1/test_job_templates.py
+++ b/saharaclient/tests/unit/osc/v1/test_job_templates.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
+from unittest import mock
from saharaclient.api import jobs as api_j
from saharaclient.osc.v1 import job_templates as osc_j
diff --git a/saharaclient/tests/unit/osc/v1/test_job_types.py b/saharaclient/tests/unit/osc/v1/test_job_types.py
index ccc7be3..8d1a319 100644
--- a/saharaclient/tests/unit/osc/v1/test_job_types.py
+++ b/saharaclient/tests/unit/osc/v1/test_job_types.py
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
from saharaclient.api import job_types as api_jt
from saharaclient.api import jobs as api_j
diff --git a/saharaclient/tests/unit/osc/v1/test_jobs.py b/saharaclient/tests/unit/osc/v1/test_jobs.py
index fc325f2..1aeac50 100644
--- a/saharaclient/tests/unit/osc/v1/test_jobs.py
+++ b/saharaclient/tests/unit/osc/v1/test_jobs.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
+from unittest import mock
from saharaclient.api import job_executions as api_je
from saharaclient.osc.v1 import jobs as osc_je
diff --git a/saharaclient/tests/unit/osc/v1/test_node_group_templates.py b/saharaclient/tests/unit/osc/v1/test_node_group_templates.py
index 10dc5aa..e9efb20 100644
--- a/saharaclient/tests/unit/osc/v1/test_node_group_templates.py
+++ b/saharaclient/tests/unit/osc/v1/test_node_group_templates.py
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
from osc_lib.tests import utils as osc_utils
+from unittest import mock
from saharaclient.api import node_group_templates as api_ngt
from saharaclient.osc.v1 import node_group_templates as osc_ngt
diff --git a/saharaclient/tests/unit/osc/v1/test_plugins.py b/saharaclient/tests/unit/osc/v1/test_plugins.py
index fad361d..75c49b1 100644
--- a/saharaclient/tests/unit/osc/v1/test_plugins.py
+++ b/saharaclient/tests/unit/osc/v1/test_plugins.py
@@ -13,7 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
+
from oslo_serialization import jsonutils as json
from saharaclient.api import plugins as api_plugins
diff --git a/saharaclient/tests/unit/osc/v1/test_utils.py b/saharaclient/tests/unit/osc/v1/test_utils.py
index 59ddbdc..4f70cf5 100644
--- a/saharaclient/tests/unit/osc/v1/test_utils.py
+++ b/saharaclient/tests/unit/osc/v1/test_utils.py
@@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
from saharaclient.osc import utils
from saharaclient.tests.unit import base