Tests: Remove the redundant method

This patch removes the redundant setUp() methods in order to
keep the code clean, In the subclass, setUp() methods has no
benefit from that, the one in superclass could satisfy that

Change-Id: I0114e4dcfe99b1c151ce84cace0fecb7952e3ef8
This commit is contained in:
junboli 2017-07-12 16:41:31 +08:00
parent c19aed2a40
commit a2e6eb010d
5 changed files with 0 additions and 15 deletions

View File

@ -39,9 +39,6 @@ WF_EXEC = {
class DBModelTest(test_base.DbTestCase):
def setUp(self):
super(DBModelTest, self).setUp()
def test_iterate_column_names(self):
wf_ex = db_api.create_workflow_execution(WF_EXEC)

View File

@ -197,9 +197,6 @@ workflows:
class TasksFunctionTest(base.EngineTestCase):
def setUp(self):
super(TasksFunctionTest, self).setUp()
def _assert_published_tasks(self, task, published_key,
expected_tasks_count=None,
expected_tasks_names=None):

View File

@ -21,9 +21,6 @@ from mistral.tests.unit import base
class ServiceCoordinatorTest(base.BaseTest):
def setUp(self):
super(ServiceCoordinatorTest, self).setUp()
def test_start(self):
cfg.CONF.set_default(
'backend_url',

View File

@ -42,9 +42,6 @@ RIGHT = {
class UtilsTest(base.BaseTest):
def setUp(self):
super(UtilsTest, self).setUp()
def test_merge_dicts(self):
left = copy.deepcopy(LEFT)
right = copy.deepcopy(RIGHT)

View File

@ -60,9 +60,6 @@ class TestCase(test.BaseTestCase):
cls.alt_client = mistral_client.MistralClientV2(
cls.alt_mgr.auth_provider, cls._service)
def setUp(self):
super(TestCase, self).setUp()
def tearDown(self):
super(TestCase, self).tearDown()