feat: updated course end text AA-827

This commit is contained in:
Sofia Yoon
2021-06-04 09:59:13 -04:00
parent fa2b1c34f7
commit 6f99edcd36
2 changed files with 6 additions and 4 deletions

View File

@@ -333,8 +333,9 @@ class CourseEndDate(DateSummary):
if self.date and self.current_time <= self.date:
mode, is_active = CourseEnrollment.enrollment_mode_for_user(self.user, self.course_id)
if is_active and CourseMode.is_eligible_for_certificate(mode):
return _('This course will be archived, which means you can review the course content '
'but can no longer participate in graded assignments or earn a certificate.')
return _('After this date, the course will be archived, which means you can review the '
'course content but can no longer participate in graded assignments or work towards earning '
'a certificate.')
else:
return _('After the course ends, the course content will be archived and no longer active.')
elif self.date:

View File

@@ -520,8 +520,9 @@ class CourseDateSummaryTest(SharedModuleStoreTestCase):
user = create_user()
CourseEnrollmentFactory(course_id=course.id, user=user, mode=CourseMode.VERIFIED)
block = CourseEndDate(course, user)
assert block.description == ('This course will be archived, which means you can review the course content '
'but can no longer participate in graded assignments or earn a certificate.')
assert block.description == ('After this date, the course will be archived, which means you can review the '
'course content but can no longer participate in graded assignments or work '
'towards earning a certificate.')
def test_course_end_date_for_non_certificate_eligible_mode(self):
course = create_course_run(days_till_start=-1)