Adds "all_sources" field to Mobile API and video module Course Blocks
student_view_data. Added to both places because the iOS app uses both APIs data to provide downloadable videos.
This commit is contained in:
@@ -1366,6 +1366,7 @@ class TestVideoDescriptorStudentViewJson(TestCase):
|
||||
"fallback": {"url": self.TEST_SOURCE_URL, "file_size": 0},
|
||||
"youtube": {"url": self.TEST_YOUTUBE_EXPECTED_URL, "file_size": 0}
|
||||
},
|
||||
"all_sources": [self.TEST_SOURCE_URL],
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1380,6 +1381,7 @@ class TestVideoDescriptorStudentViewJson(TestCase):
|
||||
"duration": None,
|
||||
"transcripts": {self.TEST_LANGUAGE: self.transcript_url},
|
||||
"encoded_videos": {"youtube": {"url": self.TEST_YOUTUBE_EXPECTED_URL, "file_size": 0}},
|
||||
"all_sources": [],
|
||||
}
|
||||
)
|
||||
|
||||
@@ -1397,6 +1399,7 @@ class TestVideoDescriptorStudentViewJson(TestCase):
|
||||
"only_on_web": False,
|
||||
"duration": self.TEST_DURATION,
|
||||
"transcripts": {self.TEST_LANGUAGE: self.transcript_url},
|
||||
'all_sources': [self.TEST_SOURCE_URL],
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user