Commit fd41db07 by tasawernawaz Committed by Bill DeRusha

rebasing

parent ceb82636
...@@ -358,9 +358,11 @@ class CourseRunMarkAsReviewedEmailTests(TestCase): ...@@ -358,9 +358,11 @@ class CourseRunMarkAsReviewedEmailTests(TestCase):
def assert_email_sent(self, to_email): def assert_email_sent(self, to_email):
""" Verify the email data for tests cases.""" """ Verify the email data for tests cases."""
run_name = '{pacing_type}: {start_date}'.format(
pacing_type=self.course_run.get_pacing_type_display(), course_key = CourseKey.from_string(self.course_run.lms_course_id)
start_date=self.course_run.start.strftime("%B %d, %Y") subject = 'Review complete: {course_name} {run_number}'.format(
course_name=self.course.title,
run_number=course_key.run
) )
self.assertEqual(len(mail.outbox), 1) self.assertEqual(len(mail.outbox), 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment