Support cohorting students via a CSV File.

TNL-735
This commit is contained in:
Daniel Friedman
2014-11-06 17:21:29 -05:00
committed by cahrens
parent 69fd063d95
commit 3d91f43030
42 changed files with 2139 additions and 251 deletions

View File

@@ -14,6 +14,7 @@ from instructor_task.api import (
submit_delete_problem_state_for_all_students,
submit_bulk_course_email,
submit_calculate_students_features_csv,
submit_cohort_students,
)
from instructor_task.api_helper import AlreadyRunningError
@@ -201,3 +202,11 @@ class InstructorTaskCourseSubmitTest(TestReportMixin, InstructorTaskCourseTestCa
features=[]
)
self._test_resubmission(api_call)
def test_submit_cohort_students(self):
api_call = lambda: submit_cohort_students(
self.create_task_request(self.instructor),
self.course.id,
file_name=u'filename.csv'
)
self._test_resubmission(api_call)