Disallow free verified course modes
The verification workflow assumes that all verified courses will have a price. Free verified course modes cause a 404 when the user attempts to enroll or upgrade.
This commit is contained in:
committed by
Braden MacDonald
parent
a2c686cf6f
commit
6fc4b38ea0
@@ -403,7 +403,7 @@ class TestInstructorAPIBulkAccountCreationAndEnrollment(SharedModuleStoreTestCas
|
||||
|
||||
# Create a course with mode 'audit'
|
||||
cls.audit_course = CourseFactory.create()
|
||||
CourseModeFactory(course_id=cls.audit_course.id, mode_slug=CourseMode.AUDIT)
|
||||
CourseModeFactory.create(course_id=cls.audit_course.id, mode_slug=CourseMode.AUDIT)
|
||||
|
||||
cls.url = reverse(
|
||||
'register_and_enroll_students', kwargs={'course_id': unicode(cls.course.id)}
|
||||
@@ -417,7 +417,7 @@ class TestInstructorAPIBulkAccountCreationAndEnrollment(SharedModuleStoreTestCas
|
||||
|
||||
# Create a course with mode 'honor' and with price
|
||||
self.white_label_course = CourseFactory.create()
|
||||
self.white_label_course_mode = CourseModeFactory(
|
||||
self.white_label_course_mode = CourseModeFactory.create(
|
||||
course_id=self.white_label_course.id,
|
||||
mode_slug=CourseMode.HONOR,
|
||||
min_price=10,
|
||||
|
||||
Reference in New Issue
Block a user