Commit ac4bc20c by Matjaz Gregoric

Fix test and pylint violations.

parent 0c707f3c
...@@ -215,9 +215,6 @@ class PerQuestionFeedbackBlock(XBlockWithTranslationServiceMixin, XBlockWithPrev ...@@ -215,9 +215,6 @@ class PerQuestionFeedbackBlock(XBlockWithTranslationServiceMixin, XBlockWithPrev
return Fragment(html) return Fragment(html)
def student_view_data(self, context=None): def student_view_data(self, context=None):
context = context or {}
review_tips = context.get('score_summary', {}).get('review_tips')
return { return {
'type': self.CATEGORY, 'type': self.CATEGORY,
} }
......
...@@ -48,9 +48,7 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase): ...@@ -48,9 +48,7 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase):
'show_title': False, 'show_title': False,
'weight': 5.0, 'weight': 5.0,
'max_attempts': 3, 'max_attempts': 3,
'num_attempts': 2,
'extended_feedback': True, 'extended_feedback': True,
'active_step': 0,
} }
step_builder = make_block(MentoringWithExplicitStepsBlock, step_builder_data) step_builder = make_block(MentoringWithExplicitStepsBlock, step_builder_data)
...@@ -96,10 +94,7 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase): ...@@ -96,10 +94,7 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase):
'show_title': step_builder_data['show_title'], 'show_title': step_builder_data['show_title'],
'weight': step_builder_data['weight'], 'weight': step_builder_data['weight'],
'max_attempts': step_builder_data['max_attempts'], 'max_attempts': step_builder_data['max_attempts'],
'num_attempts': step_builder_data['num_attempts'],
'extended_feedback': step_builder_data['extended_feedback'], 'extended_feedback': step_builder_data['extended_feedback'],
'active_step': step_builder_data['active_step'],
'hide_prev_answer': True,
'components': [ 'components': [
{ {
'type': 'sb-step', 'type': 'sb-step',
...@@ -115,7 +110,6 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase): ...@@ -115,7 +110,6 @@ class TestMentoringBlock(BlockWithChildrenTestMixin, unittest.TestCase):
'components': [ 'components': [
{ {
'type': 'sb-review-score', 'type': 'sb-review-score',
'score_summary': {},
}, },
{ {
'type': 'sb-conditional-message', 'type': 'sb-conditional-message',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment