Remove a number of unneeded super()-delegation methods

This commit is contained in:
Ned Batchelder
2017-04-27 14:12:56 -04:00
parent 1f8125df40
commit 4a568476fd
46 changed files with 2 additions and 231 deletions

View File

@@ -43,9 +43,6 @@ class BookmarksAPITests(BookmarkApiEventTestMixin, BookmarksTestsBase):
"""
These tests cover the parts of the API methods.
"""
def setUp(self):
super(BookmarksAPITests, self).setUp()
def test_get_bookmark(self):
"""
Verifies that get_bookmark returns data as expected.

View File

@@ -431,9 +431,6 @@ class XBlockCacheModelTest(ModuleStoreTestCase):
[unicode(SECTION2_USAGE_KEY), 'Section 2'],
]
def setUp(self):
super(XBlockCacheModelTest, self).setUp()
def assert_xblock_cache_data(self, xblock_cache, data):
"""
Assert that the XBlockCache object values match.

View File

@@ -18,13 +18,6 @@ class NoneToEmptyManager(models.Manager):
A :class:`django.db.models.Manager` that has a :class:`NoneToEmptyQuerySet`
as its `QuerySet`, initialized with a set of specified `field_names`.
"""
def __init__(self):
"""
Args:
field_names: The list of field names to initialize the :class:`NoneToEmptyQuerySet` with.
"""
super(NoneToEmptyManager, self).__init__()
def get_queryset(self):
"""
Returns the result of NoneToEmptyQuerySet instead of a regular QuerySet.

View File

@@ -53,9 +53,6 @@ class TestXblockUtils(SharedModuleStoreTestCase):
run='2015'
)
def setUp(self):
super(TestXblockUtils, self).setUp()
def create_fragment(self, content=None):
"""
Create a fragment.

View File

@@ -370,12 +370,6 @@ class XBlockTestCase(XBlockStudentTestCaseMixin,
raise unittest.SkipTest('Test only valid in lms')
super(XBlockTestCase, cls).setUpClass()
def setUp(self):
"""
Call setups of all parents
"""
super(XBlockTestCase, self).setUp()
def get_handler_url(self, handler, xblock_name=None):
"""
Get url for the specified xblock handler