Merge pull request #14996 from edx/nedbat/remove-useless-super-delegation

Remove a number of unneeded super()-delegation methods
This commit is contained in:
Ned Batchelder
2017-04-28 13:04:43 -04:00
committed by GitHub
46 changed files with 2 additions and 231 deletions

View File

@@ -40,10 +40,7 @@ class DatabaseMicrositeBackendTests(DatabaseMicrositeTestCase):
"""
def setUp(self):
super(DatabaseMicrositeBackendTests, self).setUp()
def tearDown(self):
super(DatabaseMicrositeBackendTests, self).tearDown()
microsite.clear()
self.addCleanup(microsite.clear)
def test_get_value(self):
"""

View File

@@ -22,9 +22,6 @@ class TestMicrosites(DatabaseMicrositeTestCase):
Run through some Microsite logic
"""
def setUp(self):
super(TestMicrosites, self).setUp()
@ddt.data(*MICROSITE_BACKENDS)
def test_get_value_for_org_when_microsite_has_no_org(self, site_backend):
"""

View File

@@ -236,9 +236,6 @@ class CanonicalContentTest(SharedModuleStoreTestCase):
set, CDN not set, etc.
"""
def setUp(self):
super(CanonicalContentTest, self).setUp()
@classmethod
def setUpClass(cls):
cls.courses = {}

View File

@@ -214,8 +214,7 @@ class OrgRole(RoleBase):
"""
A named role in a particular org independent of course
"""
def __init__(self, role, org):
super(OrgRole, self).__init__(role, org)
pass
@register_access_role

View File

@@ -94,9 +94,6 @@ class ActivationEmailTests(TestCase):
"This email message was automatically sent by edx.org"
]
def setUp(self):
super(ActivationEmailTests, self).setUp()
def test_activation_email(self):
self._create_account()
self._assert_activation_email(self.ACTIVATION_SUBJECT, self.OPENEDX_FRAGMENTS)