diff --git a/muranodashboard/tests/unit/dynamic_ui/test_services.py b/muranodashboard/tests/unit/dynamic_ui/test_services.py index 4167cfdc7..ebeeed710 100644 --- a/muranodashboard/tests/unit/dynamic_ui/test_services.py +++ b/muranodashboard/tests/unit/dynamic_ui/test_services.py @@ -27,7 +27,7 @@ from muranodashboard.dynamic_ui import services from openstack_dashboard.test import helpers -class TestService(helpers.APITestCase): +class TestService(helpers.APIMockTestCase): def setUp(self): super(TestService, self).setUp() diff --git a/muranodashboard/tests/unit/environments/test_api.py b/muranodashboard/tests/unit/environments/test_api.py index 3979cca98..f8fb132dc 100644 --- a/muranodashboard/tests/unit/environments/test_api.py +++ b/muranodashboard/tests/unit/environments/test_api.py @@ -22,7 +22,7 @@ from muranodashboard.environments import consts from openstack_dashboard.test import helpers -class TestEnvironmentsAPI(helpers.APITestCase): +class TestEnvironmentsAPI(helpers.APIMockTestCase): def setUp(self): super(TestEnvironmentsAPI, self).setUp() @@ -349,7 +349,7 @@ class TestEnvironmentsAPI(helpers.APITestCase): self.assertEqual([{'?': {'type': 'foo/bar'}}], result) -class TestEnvironmentsSessionAPI(helpers.APITestCase): +class TestEnvironmentsSessionAPI(helpers.APIMockTestCase): def setUp(self): super(TestEnvironmentsSessionAPI, self).setUp() diff --git a/muranodashboard/tests/unit/environments/test_rest_api.py b/muranodashboard/tests/unit/environments/test_rest_api.py index 0064d382b..9b4f9d127 100644 --- a/muranodashboard/tests/unit/environments/test_rest_api.py +++ b/muranodashboard/tests/unit/environments/test_rest_api.py @@ -28,7 +28,7 @@ PARAM_MAPPING = { @mock.patch.object(environments, 'api') @mock.patch.object(environments, 'env_api') -class TestComponentsMetadataAPI(helpers.APITestCase): +class TestComponentsMetadataAPI(helpers.APIMockTestCase): def setUp(self): super(TestComponentsMetadataAPI, self).setUp() @@ -86,7 +86,7 @@ class TestComponentsMetadataAPI(helpers.APITestCase): @mock.patch.object(environments, 'api') @mock.patch.object(environments, 'env_api') -class TestEnvironmentsMetadataApi(helpers.APITestCase): +class TestEnvironmentsMetadataApi(helpers.APIMockTestCase): def setUp(self): super(TestEnvironmentsMetadataApi, self).setUp() diff --git a/muranodashboard/tests/unit/environments/test_topology.py b/muranodashboard/tests/unit/environments/test_topology.py index ea1dc1e0a..64a730a45 100644 --- a/muranodashboard/tests/unit/environments/test_topology.py +++ b/muranodashboard/tests/unit/environments/test_topology.py @@ -21,7 +21,7 @@ from muranodashboard.environments import topology from openstack_dashboard.test import helpers -class TestTopology(helpers.APITestCase): +class TestTopology(helpers.APIMockTestCase): def setUp(self): super(TestTopology, self).setUp() diff --git a/muranodashboard/tests/unit/packages/test_api.py b/muranodashboard/tests/unit/packages/test_api.py index d399b5f81..c6fcf8f46 100644 --- a/muranodashboard/tests/unit/packages/test_api.py +++ b/muranodashboard/tests/unit/packages/test_api.py @@ -34,7 +34,7 @@ class MagicIterMock(mock.MagicMock): next = mock.Mock(return_value=None) -class TestPackagesAPI(helpers.APITestCase): +class TestPackagesAPI(helpers.APIMockTestCase): def setUp(self): super(TestPackagesAPI, self).setUp() diff --git a/muranodashboard/tests/unit/packages/test_forms.py b/muranodashboard/tests/unit/packages/test_forms.py index fb8344191..ca9c47396 100644 --- a/muranodashboard/tests/unit/packages/test_forms.py +++ b/muranodashboard/tests/unit/packages/test_forms.py @@ -22,7 +22,7 @@ from muranodashboard.packages import forms from openstack_dashboard.test import helpers -class TestImportBundleForm(helpers.APITestCase): +class TestImportBundleForm(helpers.APIMockTestCase): def test_clean_form(self): import_bundle_form = forms.ImportBundleForm() @@ -44,7 +44,7 @@ class TestImportBundleForm(helpers.APITestCase): import_bundle_form.clean() -class TestImportPackageForm(helpers.APITestCase): +class TestImportPackageForm(helpers.APIMockTestCase): def setUp(self): super(TestImportPackageForm, self).setUp() @@ -105,7 +105,7 @@ class TestImportPackageForm(helpers.APITestCase): self.import_pkg_form.clean() -class TestUpdatePackageForm(helpers.APITestCase): +class TestUpdatePackageForm(helpers.APIMockTestCase): def setUp(self): super(TestUpdatePackageForm, self).setUp() @@ -131,7 +131,7 @@ class TestUpdatePackageForm(helpers.APITestCase): self.update_pkg_form.fields['description'].initial) -class TestModifyPackageForm(helpers.APITestCase): +class TestModifyPackageForm(helpers.APIMockTestCase): def setUp(self): super(TestModifyPackageForm, self).setUp() @@ -256,7 +256,7 @@ class TestModifyPackageForm(helpers.APITestCase): redirect='test_redirect') -class TestSelectCategories(helpers.APITestCase): +class TestSelectCategories(helpers.APIMockTestCase): def setUp(self): super(TestSelectCategories, self).setUp() diff --git a/muranodashboard/tests/unit/test_api.py b/muranodashboard/tests/unit/test_api.py index 22a1383dc..98f989fb8 100644 --- a/muranodashboard/tests/unit/test_api.py +++ b/muranodashboard/tests/unit/test_api.py @@ -23,7 +23,7 @@ from muranodashboard import api from openstack_dashboard.test import helpers -class TestApi(helpers.APITestCase): +class TestApi(helpers.APIMockTestCase): def setUp(self): super(TestApi, self).setUp()