Remove a number of unneeded super()-delegation methods
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user