Skip to content

Commit

Permalink
fix: lint and test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinAoki committed May 30, 2024
1 parent aeff553 commit d655505
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d655505

Please sign in to comment.