Commit 74102861 by Alison Hodges

Fixed pylint line-too-long violations

parent e473022c
...@@ -90,7 +90,9 @@ def click_a_button(step, button): # pylint: disable=unused-argument ...@@ -90,7 +90,9 @@ def click_a_button(step, button): # pylint: disable=unused-argument
world.css_click('input[name="calculate-grades-csv"]') world.css_click('input[name="calculate-grades-csv"]')
# Expect to see a message that grade report is being generated # Expect to see a message that grade report is being generated
expected_msg = "Your grade report is being generated! You can view the status of the generation task in the 'Pending Tasks' section." expected_msg = "Your grade report is being generated!" \
" You can view the status of the generation" \
" task in the 'Pending Tasks' section."
world.wait_for_visible('#report-request-response') world.wait_for_visible('#report-request-response')
assert_in( assert_in(
expected_msg, world.css_text('#report-request-response'), expected_msg, world.css_text('#report-request-response'),
......
...@@ -2553,7 +2553,9 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa ...@@ -2553,7 +2553,9 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
CourseFinanceAdminRole(self.course.id).add_users(self.instructor) CourseFinanceAdminRole(self.course.id).add_users(self.instructor)
with patch(task_api_endpoint): with patch(task_api_endpoint):
response = self.client.get(url, {}) response = self.client.get(url, {})
success_status = "Your {report_type} report is being generated! You can view the status of the generation task in the 'Pending Tasks' section.".format(report_type=report_type) success_status = "Your {report_type} report is being generated!" \
" You can view the status of the generation task" \
" in the 'Pending Tasks' section.".format(report_type=report_type)
self.assertIn(success_status, response.content) self.assertIn(success_status, response.content)
@ddt.data(*EXECUTIVE_SUMMARY_DATA) @ddt.data(*EXECUTIVE_SUMMARY_DATA)
......
...@@ -1107,10 +1107,13 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=red ...@@ -1107,10 +1107,13 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=red
else: else:
try: try:
instructor_task.api.submit_calculate_students_features_csv(request, course_key, query_features) instructor_task.api.submit_calculate_students_features_csv(request, course_key, query_features)
success_status = _("Your enrolled student profile report is being generated! You can view the status of the generation task in the 'Pending Tasks' section.") success_status = _("Your enrolled student profile report is being generated!" \
" You can view the status of the generation task in the 'Pending Tasks' section.")
return JsonResponse({"status": success_status}) return JsonResponse({"status": success_status})
except AlreadyRunningError: except AlreadyRunningError:
already_running_status = _("An enrolled student profile report generation task is already in progress. Check the 'Pending Tasks' table for the status of the task. When completed, the report will be available for download in the table below.") already_running_status = _("An enrolled student profile report generation task is already in progress." \
" Check the 'Pending Tasks' table for the status of the task. When completed," \
" the report will be available for download in the table below.")
return JsonResponse({"status": already_running_status}) return JsonResponse({"status": already_running_status})
......
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