diff --git a/lms/djangoapps/instructor/features/common.py b/lms/djangoapps/instructor/features/common.py index 0a50298573..27e15d7aca 100644 --- a/lms/djangoapps/instructor/features/common.py +++ b/lms/djangoapps/instructor/features/common.py @@ -90,7 +90,9 @@ def click_a_button(step, button): # pylint: disable=unused-argument world.css_click('input[name="calculate-grades-csv"]') # 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') assert_in( expected_msg, world.css_text('#report-request-response'), diff --git a/lms/djangoapps/instructor/tests/test_api.py b/lms/djangoapps/instructor/tests/test_api.py index 832b42db84..9e0789b625 100644 --- a/lms/djangoapps/instructor/tests/test_api.py +++ b/lms/djangoapps/instructor/tests/test_api.py @@ -2553,7 +2553,9 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa CourseFinanceAdminRole(self.course.id).add_users(self.instructor) with patch(task_api_endpoint): 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) @ddt.data(*EXECUTIVE_SUMMARY_DATA) diff --git a/lms/djangoapps/instructor/views/api.py b/lms/djangoapps/instructor/views/api.py index 12e17a4bc6..f7a4c38c6e 100644 --- a/lms/djangoapps/instructor/views/api.py +++ b/lms/djangoapps/instructor/views/api.py @@ -1107,10 +1107,13 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=red else: try: 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}) 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})