fix: fix new pylint warnings (#28725)

This commit is contained in:
Usama Sadiq
2021-09-23 17:54:15 +05:00
committed by GitHub
parent 484cd536e2
commit 023f4144ab
17 changed files with 23 additions and 23 deletions

View File

@@ -219,7 +219,7 @@ class TestRescoringTask(TestIntegrationTask):
)
@ddt.data(
RescoreTestData(edit=dict(), new_expected_scores=(2, 1, 1, 0), new_expected_max=2),
RescoreTestData(edit={}, new_expected_scores=(2, 1, 1, 0), new_expected_max=2),
RescoreTestData(edit=dict(correct_answer=OPTION_2), new_expected_scores=(2, 1, 1, 2), new_expected_max=2),
)
@ddt.unpack

View File

@@ -1778,7 +1778,7 @@ class TestGradeReport(TestReportMixin, InstructorTaskModuleTestCase):
metadata={'graded': True, 'format': 'Homework', 'start': in_the_future},
display_name='Unreleased'
)
self.define_option_problem(u'Unreleased', parent=self.unreleased_section)
self.define_option_problem('Unreleased', parent=self.unreleased_section)
@patch.dict(settings.FEATURES, {'DISABLE_START_DATES': False})
@ddt.data(True, False)