diff --git a/cms/djangoapps/contentstore/tests/test_course_create_rerun.py b/cms/djangoapps/contentstore/tests/test_course_create_rerun.py index d9023bfce224..a03e8e9cd2f5 100644 --- a/cms/djangoapps/contentstore/tests/test_course_create_rerun.py +++ b/cms/djangoapps/contentstore/tests/test_course_create_rerun.py @@ -104,10 +104,9 @@ def test_rerun(self): dest_course_key = CourseKey.from_string(data['destination_course_key']) self.assertEqual(dest_course_key.run, 'copy') - source_course = self.store.get_course(self.source_course_key) dest_course = self.store.get_course(dest_course_key) self.assertEqual(dest_course.start, CourseFields.start.default) - self.assertEqual(dest_course.end, source_course.end) + self.assertEqual(dest_course.end, None) self.assertEqual(dest_course.enrollment_start, None) self.assertEqual(dest_course.enrollment_end, None) course_orgs = get_course_organizations(dest_course_key) diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index 00fb76a8ce9f..9f6cfb7c430e 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -1041,7 +1041,6 @@ def rerun_course(user, source_course_key, org, number, run, fields, background=T add_instructor(destination_course_key, user, user) # Mark the action as initiated - print(fields) CourseRerunState.objects.initiated(source_course_key, destination_course_key, user, fields['display_name']) # Clear the fields that must be reset for the rerun