Unverified Commit 947b8723 by Muhammad Ammar Committed by GitHub

Merge pull request #16539 from edx/ammar/pass-course-id-as-string

pass course id as string to edxval api method
parents 230b18db d78557a4
......@@ -1930,7 +1930,7 @@ class RerunCourseTest(ContentStoreTestCase):
source_course = CourseFactory.create()
destination_course_key = self.post_rerun_request(source_course.id)
self.verify_rerun_course(source_course.id, destination_course_key, self.destination_course_data['display_name'])
videos = list(get_videos_for_course(destination_course_key))
videos = list(get_videos_for_course(unicode(destination_course_key)))
self.assertEqual(0, len(videos))
self.assertInCourseListing(destination_course_key)
......@@ -1949,8 +1949,8 @@ class RerunCourseTest(ContentStoreTestCase):
self.verify_rerun_course(source_course.id, destination_course_key, self.destination_course_data['display_name'])
# Verify that the VAL copies videos to the rerun
source_videos = list(get_videos_for_course(source_course.id))
target_videos = list(get_videos_for_course(destination_course_key))
source_videos = list(get_videos_for_course(unicode(source_course.id)))
target_videos = list(get_videos_for_course(unicode(destination_course_key)))
self.assertEqual(1, len(source_videos))
self.assertEqual(source_videos, target_videos)
......
......@@ -526,7 +526,7 @@ def _get_videos(course):
"""
Retrieves the list of videos from VAL corresponding to this course.
"""
videos = list(get_videos_for_course(course.id, VideoSortField.created, SortDirection.desc))
videos = list(get_videos_for_course(unicode(course.id), VideoSortField.created, SortDirection.desc))
# convert VAL's status to studio's Video Upload feature status.
for video in videos:
......
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