Commit b8050f28 by Tim Krones

Fix pep8 violations.

parent f1e8f6a5
......@@ -56,7 +56,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
data_export = self.go_to_view()
self.assertIn('This interface can only be used by course staff.', data_export.text)
@patch.dict('sys.modules', {
'problem_builder.tasks': MockTasksModule(successful=True),
'instructor_task': True,
......@@ -95,7 +94,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
self.assertIn('Results retrieved on', info_area.text)
self.assertEqual('', status_area.text)
@patch.dict('sys.modules', {
'problem_builder.tasks': MockTasksModule(successful=False),
'instructor_task': True,
......@@ -128,7 +126,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
self.assertEqual('', info_area.text)
self.assertIn('Data export failed. Reason:', status_area.text)
@patch.dict('sys.modules', {
'problem_builder.tasks': MockTasksModule(successful=True),
'instructor_task': True,
......@@ -158,7 +155,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
self.assertEqual('0', current_page_info.text)
self.assertEqual('0', total_pages_info.text)
@patch.dict('sys.modules', {
'problem_builder.tasks': MockTasksModule(
successful=True, display_data=[[
......@@ -198,7 +194,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
self.assertEqual('1', current_page_info.text)
self.assertEqual('1', total_pages_info.text)
@patch.dict('sys.modules', {
'problem_builder.tasks': MockTasksModule(
successful=True, display_data=[[
......@@ -303,7 +298,6 @@ class StudentAnswersDashboardTest(SeleniumXBlockTest):
self.assertEqual('1', current_page_info.text)
def test_non_staff_disabled(self):
student_answers_dashboard = self.go_to_view()
self.assertRaises(
......
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