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
This commit is contained in:
Akihiro Motoki 2018-06-03 10:10:53 +09:00 committed by zhurong
parent 0c4b4f223a
commit 1db0d4822b

View File

@ -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()