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:
loooosy 2017-04-02 01:02:21 +08:00
parent 3f17971fe3
commit 9ef8a033a7
7 changed files with 0 additions and 14 deletions

View File

@ -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:

View File

@ -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]

View File

@ -41,8 +41,6 @@ test works :)
class TestMls(testtools.TestCase):
def setUp(self):
super(TestMls, self).setUp()
def test_mail_parse_regex(self):

View File

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

View File

@ -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 = {

View File

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

View File

@ -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 = '''