TNL-1652: Allow instructors to obtain CSV file listing students who may

enroll in a course but have not signed up yet.
This commit is contained in:
Tim Krones
2015-05-18 14:38:52 +02:00
parent 298ba727bd
commit f711a32e3d
16 changed files with 287 additions and 17 deletions

View File

@@ -16,7 +16,9 @@ from instructor_task.api import (
submit_bulk_course_email,
submit_calculate_students_features_csv,
submit_cohort_students,
submit_detailed_enrollment_features_csv)
submit_detailed_enrollment_features_csv,
submit_calculate_may_enroll_csv,
)
from instructor_task.api_helper import AlreadyRunningError
from instructor_task.models import InstructorTask, PROGRESS
@@ -212,6 +214,14 @@ class InstructorTaskCourseSubmitTest(TestReportMixin, InstructorTaskCourseTestCa
self.course.id)
self._test_resubmission(api_call)
def test_submit_calculate_may_enroll(self):
api_call = lambda: submit_calculate_may_enroll_csv(
self.create_task_request(self.instructor),
self.course.id,
features=[]
)
self._test_resubmission(api_call)
def test_submit_cohort_students(self):
api_call = lambda: submit_cohort_students(
self.create_task_request(self.instructor),