Merge pull request #14996 from edx/nedbat/remove-useless-super-delegation
Remove a number of unneeded super()-delegation methods
This commit is contained in:
@@ -17,9 +17,6 @@ class TestArgParsingCourseExport(unittest.TestCase):
|
||||
"""
|
||||
Tests for parsing arguments for the `export` management command
|
||||
"""
|
||||
def setUp(self):
|
||||
super(TestArgParsingCourseExport, self).setUp()
|
||||
|
||||
def test_no_args(self):
|
||||
"""
|
||||
Test export command with no arguments
|
||||
|
||||
@@ -86,9 +86,6 @@ class CourseDetailsViewTest(CourseTestCase, MilestonesTestCaseMixin):
|
||||
"""
|
||||
Tests for modifying content on the first course settings page (course dates, overview, etc.).
|
||||
"""
|
||||
def setUp(self):
|
||||
super(CourseDetailsViewTest, self).setUp()
|
||||
|
||||
def alter_field(self, url, details, field, val):
|
||||
"""
|
||||
Change the one field to the given value and then invoke the update post to see if it worked.
|
||||
|
||||
@@ -131,9 +131,6 @@ class MixedWithOptionsTestCase(MixedSplitTestCase):
|
||||
INDEX_NAME = None
|
||||
DOCUMENT_TYPE = None
|
||||
|
||||
def setUp(self):
|
||||
super(MixedWithOptionsTestCase, self).setUp()
|
||||
|
||||
def setup_course_base(self, store):
|
||||
""" base version of setup_course_base is a no-op """
|
||||
pass
|
||||
|
||||
@@ -95,9 +95,6 @@ class PreviewModuleSystem(ModuleSystem): # pylint: disable=abstract-method
|
||||
# they are being rendered for preview (i.e. in Studio)
|
||||
is_author_mode = True
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super(PreviewModuleSystem, self).__init__(**kwargs)
|
||||
|
||||
def handler_url(self, block, handler_name, suffix='', query='', thirdparty=False):
|
||||
return reverse('preview_handler', kwargs={
|
||||
'usage_key_string': unicode(block.scope_ids.usage_id),
|
||||
|
||||
@@ -210,12 +210,6 @@ class GroupConfigurationsListHandlerTestCase(CourseTestCase, GroupConfigurations
|
||||
"""
|
||||
Test cases for group_configurations_list_handler.
|
||||
"""
|
||||
def setUp(self):
|
||||
"""
|
||||
Set up GroupConfigurationsListHandlerTestCase.
|
||||
"""
|
||||
super(GroupConfigurationsListHandlerTestCase, self).setUp()
|
||||
|
||||
def _url(self):
|
||||
"""
|
||||
Return url for the handler.
|
||||
@@ -609,10 +603,6 @@ class GroupConfigurationsUsageInfoTestCase(CourseTestCase, HelperMethods):
|
||||
"""
|
||||
Tests for usage information of configurations and content groups.
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
super(GroupConfigurationsUsageInfoTestCase, self).setUp()
|
||||
|
||||
def _get_user_partition(self, scheme):
|
||||
"""
|
||||
Returns the first user partition with the specified scheme.
|
||||
@@ -947,9 +937,6 @@ class GroupConfigurationsValidationTestCase(CourseTestCase, HelperMethods):
|
||||
"""
|
||||
Tests for validation in Group Configurations.
|
||||
"""
|
||||
def setUp(self):
|
||||
super(GroupConfigurationsValidationTestCase, self).setUp()
|
||||
|
||||
@patch('xmodule.split_test_module.SplitTestDescriptor.validate_split_test')
|
||||
def verify_validation_add_usage_info(self, expected_result, mocked_message, mocked_validation_messages):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user