From d65550592e7f5eda1b7386d4e39c6ead5200b48a Mon Sep 17 00:00:00 2001 From: KristinAoki Date: Thu, 30 May 2024 14:08:37 -0400 Subject: [PATCH] fix: lint and test errors --- cms/djangoapps/contentstore/tests/test_course_create_rerun.py | 3 +-- cms/djangoapps/contentstore/views/course.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) 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