From 1db0d4822b1eb6dbd4c3258f78d30ac1281b7c05 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Sun, 3 Jun 2018 10:10:53 +0900 Subject: [PATCH] Use mox dependency explicitly horizon Rocky development version no longer depends on mox and instantiate mox instance in the base test class. murano-dashboard still depends on mox so use_mox = True needs to be declared explicitly. Change-Id: Iba76366ac16ffb2df61a81da1d8cd5cece28162c --- muranodashboard/tests/unit/packages/test_views.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/muranodashboard/tests/unit/packages/test_views.py b/muranodashboard/tests/unit/packages/test_views.py index 96562374b..ae5e9c295 100644 --- a/muranodashboard/tests/unit/packages/test_views.py +++ b/muranodashboard/tests/unit/packages/test_views.py @@ -31,6 +31,8 @@ from openstack_dashboard.test import helpers class TestPackageView(helpers.APIMockTestCase): + use_mox = True + def setUp(self): super(TestPackageView, self).setUp() @@ -89,6 +91,8 @@ class TestPackageView(helpers.APIMockTestCase): class TestDetailView(helpers.APIMockTestCase): + use_mox = True + def setUp(self): super(TestDetailView, self).setUp() @@ -131,6 +135,8 @@ class TestDetailView(helpers.APIMockTestCase): class TestModifyPackageView(helpers.APIMockTestCase): + use_mox = True + def setUp(self): super(TestModifyPackageView, self).setUp() @@ -190,6 +196,8 @@ class TestModifyPackageView(helpers.APIMockTestCase): class TestImportPackageWizard(helpers.APIMockTestCase): + use_mox = True + def setUp(self): super(TestImportPackageWizard, self).setUp() @@ -784,6 +792,8 @@ class TestImportPackageWizard(helpers.APIMockTestCase): class TestImportBundleWizard(helpers.APIMockTestCase): + use_mox = True + def setUp(self): super(TestImportBundleWizard, self).setUp()