Remove unnecessary setUp function in testcase
In testcase, setUp will be called automatically. This patch used to remove setUp functions that do nothing. Besides, it will keep code clean. Change-Id: I6689b9b22d521ddf3556329d8103ea34e26a90ea
This commit is contained in:
parent
3f17971fe3
commit
9ef8a033a7
@ -51,8 +51,6 @@ def dict_raise_on_duplicates(ordered_pairs):
|
||||
|
||||
|
||||
class TestConfigFiles(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestConfigFiles, self).setUp()
|
||||
|
||||
def _read_raw_file(self, file_name):
|
||||
if six.PY3:
|
||||
|
@ -67,8 +67,6 @@ DRIVER_NON_EXISTENT = {
|
||||
|
||||
|
||||
class TestDriverlog(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestDriverlog, self).setUp()
|
||||
|
||||
def test_find_ci_result_success(self):
|
||||
drivers = [DRIVER]
|
||||
|
@ -41,8 +41,6 @@ test works :)
|
||||
|
||||
|
||||
class TestMls(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestMls, self).setUp()
|
||||
|
||||
def test_mail_parse_regex(self):
|
||||
|
||||
|
@ -21,8 +21,6 @@ from stackalytics.processor import mps
|
||||
|
||||
|
||||
class TestMps(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestMps, self).setUp()
|
||||
|
||||
def test_member_parse_regex(self):
|
||||
|
||||
|
@ -19,8 +19,6 @@ from stackalytics.processor import user_processor
|
||||
|
||||
|
||||
class TestUserProcessor(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestUserProcessor, self).setUp()
|
||||
|
||||
def test_update_user(self):
|
||||
user = {
|
||||
|
@ -20,8 +20,6 @@ from stackalytics.processor import utils
|
||||
|
||||
|
||||
class TestUtils(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestUtils, self).setUp()
|
||||
|
||||
def _test_one_range(self, start, end, step):
|
||||
elements = set()
|
||||
|
@ -21,8 +21,6 @@ from stackalytics.dashboard import parameters
|
||||
|
||||
|
||||
class TestWebUtils(testtools.TestCase):
|
||||
def setUp(self):
|
||||
super(TestWebUtils, self).setUp()
|
||||
|
||||
def test_make_commit_message(self):
|
||||
message = '''
|
||||
|
Loading…
Reference in New Issue
Block a user