success_status="Your {report_type} report is being generated! You can view the status of the generation task in the 'Pending Instructor 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)
...
...
@@ -2573,7 +2573,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
withpatch(task_api_endpoint):
response=self.client.get(url,{})
success_status="Your {report_type} report is being created." \
" To view the status of the report, see the 'Pending Instructor Tasks'" \
" To view the status of the report, see the 'Pending Tasks'" \
" section.".format(report_type=report_type)
self.assertIn(success_status,response.content)
...
...
@@ -2595,7 +2595,7 @@ class TestInstructorAPILevelsDataDump(ModuleStoreTestCase, LoginEnrollmentTestCa
mock.side_effect=AlreadyRunningError()
response=self.client.get(url,{})
already_running_status="An {report_type} report is currently in progress." \
" To view the status of the report, see the 'Pending Instructor Tasks' section." \
" To view the status of the report, see the 'Pending Tasks' section." \
" When completed, the report will be available for download in the table below." \
" You will be able to download the" \
" report when it is complete.".format(report_type=report_type)
success_status=_("Your enrolled student profile report is being generated! You can view the status of the generation task in the 'Pending Instructor 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.")
returnJsonResponse({"status":success_status})
exceptAlreadyRunningError:
already_running_status=_("An enrolled student profile report generation task is already in progress. Check the 'Pending Instructor 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.")