Remove unnecessary setUp
setUp will be automatically called around each testcase, so this is to remove setUp that doing nothing additional than super to keep code clean. Change-Id: Iad975644a0be207c0cb5ffd5941346fc5b86718b
This commit is contained in:
parent
6fd6c097ac
commit
5cf28b0863
@ -41,9 +41,6 @@ class MuranoTestsCore(testtools.TestCase, testtools.testcase.WithAttributes,
|
||||
cfg.load_config()
|
||||
cls._environments = []
|
||||
|
||||
def setUp(self):
|
||||
super(MuranoTestsCore, self).setUp()
|
||||
|
||||
def tearDown(self):
|
||||
super(MuranoTestsCore, self).tearDown()
|
||||
self.purge_environments()
|
||||
|
@ -24,9 +24,6 @@ from murano.tests.unit import base
|
||||
|
||||
class TestEngineWorkers(base.MuranoTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestEngineWorkers, self).setUp()
|
||||
|
||||
@mock.patch.object(config, 'parse_args')
|
||||
@mock.patch.object(logging, 'setup')
|
||||
@mock.patch('oslo_service.service.launch')
|
||||
|
@ -21,9 +21,6 @@ CONF = cfg.CONF
|
||||
|
||||
class PluginLoaderTest(base.MuranoTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(PluginLoaderTest, self).setUp()
|
||||
|
||||
@mock.patch('stevedore.extension.Extension')
|
||||
def test_load_extension(self, ext):
|
||||
"""Test PluginLoader.load_extension.
|
||||
|
@ -17,9 +17,6 @@ from murano.tests.unit import base
|
||||
|
||||
|
||||
class TestActionFinder(base.MuranoTestCase):
|
||||
def setUp(self):
|
||||
super(TestActionFinder, self).setUp()
|
||||
|
||||
def test_simple_root_level_search(self):
|
||||
model = {
|
||||
'?': {
|
||||
|
@ -32,9 +32,6 @@ ROOT_CLASS = 'io.murano.Object'
|
||||
|
||||
|
||||
class TestNamespaceResolving(base.MuranoTestCase):
|
||||
def setUp(self):
|
||||
super(TestNamespaceResolving, self).setUp()
|
||||
|
||||
def test_fails_w_empty_name(self):
|
||||
resolver = ns_resolver.NamespaceResolver({'=': 'com.example.murano'})
|
||||
|
||||
@ -95,9 +92,6 @@ class TestNamespaceResolving(base.MuranoTestCase):
|
||||
|
||||
|
||||
class TestHelperFunctions(base.MuranoTestCase):
|
||||
def setUp(self):
|
||||
super(TestHelperFunctions, self).setUp()
|
||||
|
||||
def test_generate_id(self):
|
||||
generated_id = helpers.generate_id()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user