Commit 7df13b8c by Bertrand Marron

Update default video in tests

parent 52126907
...@@ -52,7 +52,7 @@ def i_created_a_video_component(step): ...@@ -52,7 +52,7 @@ def i_created_a_video_component(step):
@step('I have created a Video component with subtitles$') @step('I have created a Video component with subtitles$')
def i_created_a_video_with_subs(_step): def i_created_a_video_with_subs(_step):
_step.given('I have created a Video component with subtitles "3_yD_cEKoCk"') _step.given('I have created a Video component with subtitles "_Szu8hVDvgc"')
@step('I have created a Video component with subtitles "([^"]*)"$') @step('I have created a Video component with subtitles "([^"]*)"$')
......
...@@ -142,7 +142,7 @@ def correct_video_settings(_step): ...@@ -142,7 +142,7 @@ def correct_video_settings(_step):
expected_entries = [ expected_entries = [
# basic # basic
[DISPLAY_NAME, 'Video', False], [DISPLAY_NAME, 'Video', False],
['Default Video URL', 'http://youtu.be/3_yD_cEKoCk, , ', False], ['Default Video URL', 'http://youtu.be/_Szu8hVDvgc, , ', False],
# advanced # advanced
[DISPLAY_NAME, 'Video', False], [DISPLAY_NAME, 'Video', False],
...@@ -157,7 +157,7 @@ def correct_video_settings(_step): ...@@ -157,7 +157,7 @@ def correct_video_settings(_step):
['Video File URLs', '', False], ['Video File URLs', '', False],
['Video Start Time', '00:00:00', False], ['Video Start Time', '00:00:00', False],
['Video Stop Time', '00:00:00', False], ['Video Stop Time', '00:00:00', False],
['YouTube ID', '3_yD_cEKoCk', False], ['YouTube ID', '_Szu8hVDvgc', False],
['YouTube ID for .75x speed', '', False], ['YouTube ID for .75x speed', '', False],
['YouTube ID for 1.25x speed', '', False], ['YouTube ID for 1.25x speed', '', False],
['YouTube ID for 1.5x speed', '', False] ['YouTube ID for 1.5x speed', '', False]
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div <div
id="video_id" id="video_id"
class="video closed" class="video closed"
data-metadata='{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["xmodule/include/fixtures/test.mp4","xmodule/include/fixtures/test.webm","xmodule/include/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "www.youtube.com/iframe_api", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "html5_sources": ["http://youtu.be/3_yD_cEKoCk.mp4"]}' data-metadata='{"autohideHtml5": "true", "autoplay": "false", "captionDataDir": "", "endTime": "", "generalSpeed": "1.0", "saveStateUrl": "/save_user_state", "savedVideoPosition": "0", "showCaptions": "true", "sources": ["xmodule/include/fixtures/test.mp4","xmodule/include/fixtures/test.webm","xmodule/include/fixtures/test.ogv"], "speed": "1.5", "startTime": "", "streams": "", "sub": "Z5KLxerq05Y", "transcriptAvailableTranslationsUrl": "/transcript/available_translations", "transcriptLanguage": "en", "transcriptLanguages": {"en": "English", "de": "Deutsch", "zh": "普通话"}, "transcriptTranslationUrl": "/transcript/translation/__lang__", "ytApiUrl": "www.youtube.com/iframe_api", "ytImageUrl": "", "ytTestTimeout": "1500", "ytMetadataUrl": "www.googleapis.com/youtube/v3/videos/", "source": "", "html5_sources": ["http://youtu.be/_Szu8hVDvgc.mp4"]}'
> >
<div class="focus_grabber first"></div> <div class="focus_grabber first"></div>
......
...@@ -383,7 +383,7 @@ class VideoDescriptorImportTestCase(unittest.TestCase): ...@@ -383,7 +383,7 @@ class VideoDescriptorImportTestCase(unittest.TestCase):
output = VideoDescriptor.from_xml(xml_data, module_system, Mock()) output = VideoDescriptor.from_xml(xml_data, module_system, Mock())
self.assert_attributes_equal(output, { self.assert_attributes_equal(output, {
'youtube_id_0_75': '', 'youtube_id_0_75': '',
'youtube_id_1_0': '3_yD_cEKoCk', 'youtube_id_1_0': '_Szu8hVDvgc',
'youtube_id_1_25': '', 'youtube_id_1_25': '',
'youtube_id_1_5': '', 'youtube_id_1_5': '',
'show_captions': True, 'show_captions': True,
......
...@@ -415,7 +415,7 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler ...@@ -415,7 +415,7 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler
one should compare own_metadata(self) and old_medatada. one should compare own_metadata(self) and old_medatada.
Video player has two tabs, and due to nature of sync between tabs, Video player has two tabs, and due to nature of sync between tabs,
metadata from Basic tab is always sent when video player is edited and saved first time, for example: metadata from Basic tab is always sent when video player is edited and saved first time, for example:
{'youtube_id_1_0': u'3_yD_cEKoCk', 'display_name': u'Video', 'sub': u'3_yD_cEKoCk', 'html5_sources': []}, {'youtube_id_1_0': u'_Szu8hVDvgc', 'display_name': u'Video', 'sub': u'_Szu8hVDvgc', 'html5_sources': []},
that's why these fields will always present in old_metadata after first save. This should be fixed. that's why these fields will always present in old_metadata after first save. This should be fixed.
At consequent save requests html5_sources are always sent too, disregard of their change by user. At consequent save requests html5_sources are always sent too, disregard of their change by user.
That means that html5_sources are always in list of fields that were changed (`metadata` param in save_item). That means that html5_sources are always in list of fields that were changed (`metadata` param in save_item).
...@@ -501,7 +501,7 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler ...@@ -501,7 +501,7 @@ class VideoDescriptor(VideoFields, VideoTranscriptsMixin, VideoStudioViewHandler
youtube_string = create_youtube_string(self) youtube_string = create_youtube_string(self)
# Mild workaround to ensure that tests pass -- if a field # Mild workaround to ensure that tests pass -- if a field
# is set to its default value, we don't need to write it out. # is set to its default value, we don't need to write it out.
if youtube_string and youtube_string != '1.00:3_yD_cEKoCk': if youtube_string and youtube_string != '1.00:_Szu8hVDvgc':
xml.set('youtube', unicode(youtube_string)) xml.set('youtube', unicode(youtube_string))
xml.set('url_name', self.url_name) xml.set('url_name', self.url_name)
attrs = { attrs = {
......
...@@ -53,7 +53,7 @@ DISPLAY_NAME = "Component Display Name" ...@@ -53,7 +53,7 @@ DISPLAY_NAME = "Component Display Name"
DEFAULT_SETTINGS = [ DEFAULT_SETTINGS = [
# basic # basic
[DISPLAY_NAME, 'Video', False], [DISPLAY_NAME, 'Video', False],
['Default Video URL', 'http://youtu.be/3_yD_cEKoCk, , ', False], ['Default Video URL', 'http://youtu.be/_Szu8hVDvgc, , ', False],
# advanced # advanced
[DISPLAY_NAME, 'Video', False], [DISPLAY_NAME, 'Video', False],
...@@ -69,7 +69,7 @@ DEFAULT_SETTINGS = [ ...@@ -69,7 +69,7 @@ DEFAULT_SETTINGS = [
['Video ID', '', False], ['Video ID', '', False],
['Video Start Time', '00:00:00', False], ['Video Start Time', '00:00:00', False],
['Video Stop Time', '00:00:00', False], ['Video Stop Time', '00:00:00', False],
['YouTube ID', '3_yD_cEKoCk', False], ['YouTube ID', '_Szu8hVDvgc', False],
['YouTube ID for .75x speed', '', False], ['YouTube ID for .75x speed', '', False],
['YouTube ID for 1.25x speed', '', False], ['YouTube ID for 1.25x speed', '', False],
['YouTube ID for 1.5x speed', '', False] ['YouTube ID for 1.5x speed', '', False]
......
...@@ -70,7 +70,7 @@ def is_youtube_available(): ...@@ -70,7 +70,7 @@ def is_youtube_available():
'player': 'https://www.youtube.com/iframe_api', 'player': 'https://www.youtube.com/iframe_api',
# For transcripts, you need to check an actual video, so we will # For transcripts, you need to check an actual video, so we will
# just specify our default video and see if that one is available. # just specify our default video and see if that one is available.
'transcript': 'http://video.google.com/timedtext?lang=en&v=3_yD_cEKoCk', 'transcript': 'http://video.google.com/timedtext?lang=en&v=_Szu8hVDvgc',
} }
for url in youtube_api_urls.itervalues(): for url in youtube_api_urls.itervalues():
......
...@@ -25,7 +25,7 @@ class VideoEditorTest(CMSVideoBaseTest): ...@@ -25,7 +25,7 @@ class VideoEditorTest(CMSVideoBaseTest):
""" """
if subtitles: if subtitles:
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
self.navigate_to_course_unit() self.navigate_to_course_unit()
...@@ -345,7 +345,7 @@ class VideoEditorTest(CMSVideoBaseTest): ...@@ -345,7 +345,7 @@ class VideoEditorTest(CMSVideoBaseTest):
And I open tab "Advanced" And I open tab "Advanced"
And I click button "Add" And I click button "Add"
And I choose "uk" language code And I choose "uk" language code
And I try to upload transcript file "subs_3_yD_cEKoCk.srt.sjson" And I try to upload transcript file "subs__Szu8hVDvgc.srt.sjson"
Then I see validation error "Only SRT files can be uploaded. Please select a file ending in .srt to upload." Then I see validation error "Only SRT files can be uploaded. Please select a file ending in .srt to upload."
""" """
self._create_video_component() self._create_video_component()
...@@ -353,7 +353,7 @@ class VideoEditorTest(CMSVideoBaseTest): ...@@ -353,7 +353,7 @@ class VideoEditorTest(CMSVideoBaseTest):
self.open_advanced_tab() self.open_advanced_tab()
self.video.click_button('translation_add') self.video.click_button('translation_add')
self.video.select_translation_language('uk') self.video.select_translation_language('uk')
self.video.upload_asset('subs_3_yD_cEKoCk.srt.sjson', asset_type='transcript') self.video.upload_asset('subs__Szu8hVDvgc.srt.sjson', asset_type='transcript')
error_msg = 'Only SRT files can be uploaded. Please select a file ending in .srt to upload.' error_msg = 'Only SRT files can be uploaded. Please select a file ending in .srt to upload.'
self.assertEqual(self.video.upload_status_message, error_msg) self.assertEqual(self.video.upload_status_message, error_msg)
......
...@@ -150,7 +150,7 @@ class CMSVideoTest(CMSVideoBaseTest): ...@@ -150,7 +150,7 @@ class CMSVideoTest(CMSVideoBaseTest):
YouTubeStubConfig.configure(youtube_stub_config) YouTubeStubConfig.configure(youtube_stub_config)
if subtitles: if subtitles:
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
self.navigate_to_course_unit() self.navigate_to_course_unit()
......
...@@ -31,7 +31,7 @@ class VideoTranscriptTest(CMSVideoBaseTest): ...@@ -31,7 +31,7 @@ class VideoTranscriptTest(CMSVideoBaseTest):
def setUp(self): def setUp(self):
super(VideoTranscriptTest, self).setUp() super(VideoTranscriptTest, self).setUp()
def _create_video_component(self, subtitles=False, subtitle_id='3_yD_cEKoCk'): def _create_video_component(self, subtitles=False, subtitle_id='_Szu8hVDvgc'):
""" """
Create a video component and navigate to unit page Create a video component and navigate to unit page
......
...@@ -29,7 +29,7 @@ class VideoEventsTestMixin(EventsTestMixin, VideoBaseTest): ...@@ -29,7 +29,7 @@ class VideoEventsTestMixin(EventsTestMixin, VideoBaseTest):
expected_event = { expected_event = {
'event': { 'event': {
'id': video_locator.html_id(), 'id': video_locator.html_id(),
'code': '3_yD_cEKoCk' 'code': '_Szu8hVDvgc'
} }
} }
self.assert_events_match([expected_event], [video_event]) self.assert_events_match([expected_event], [video_event])
......
...@@ -236,7 +236,7 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -236,7 +236,7 @@ class YouTubeVideoTest(VideoBaseTest):
Then I see the correct english text in the captions Then I see the correct english text in the captions
""" """
self._install_course_fixture() self._install_course_fixture()
self.course_fixture.add_asset(['subs_3_yD_cEKoCk.srt.sjson']) self.course_fixture.add_asset(['subs__Szu8hVDvgc.srt.sjson'])
self.course_fixture._upload_assets() self.course_fixture._upload_assets()
self._navigate_to_courseware_video_and_render() self._navigate_to_courseware_video_and_render()
self.video.show_captions() self.video.show_captions()
...@@ -298,8 +298,8 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -298,8 +298,8 @@ class YouTubeVideoTest(VideoBaseTest):
And I see the correct non-english text in the captions And I see the correct non-english text in the captions
And the non-english transcript downloads correctly And the non-english transcript downloads correctly
""" """
self.assets.extend(['chinese_transcripts.srt', 'subs_3_yD_cEKoCk.srt.sjson']) self.assets.extend(['chinese_transcripts.srt', 'subs__Szu8hVDvgc.srt.sjson'])
data = {'download_track': True, 'transcripts': {'zh': 'chinese_transcripts.srt'}, 'sub': '3_yD_cEKoCk'} data = {'download_track': True, 'transcripts': {'zh': 'chinese_transcripts.srt'}, 'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data) self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video # go to video
...@@ -332,8 +332,8 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -332,8 +332,8 @@ class YouTubeVideoTest(VideoBaseTest):
Then the video with the transcript enabled is aligned correctly Then the video with the transcript enabled is aligned correctly
And the video with the transcript hidden is aligned correctly And the video with the transcript hidden is aligned correctly
""" """
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
data = {'sub': '3_yD_cEKoCk'} data = {'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data) self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video # go to video
...@@ -416,9 +416,9 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -416,9 +416,9 @@ class YouTubeVideoTest(VideoBaseTest):
And the Download Transcript menu does not exist for Video C And the Download Transcript menu does not exist for Video C
""" """
data_a = {'sub': '3_yD_cEKoCk', 'download_track': True} data_a = {'sub': '_Szu8hVDvgc', 'download_track': True}
youtube_a_metadata = self.metadata_for_mode('youtube', additional_data=data_a) youtube_a_metadata = self.metadata_for_mode('youtube', additional_data=data_a)
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
data_b = {'youtube_id_1_0': 'b7xgknqkQk8', 'sub': 'b7xgknqkQk8', 'download_track': True} data_b = {'youtube_id_1_0': 'b7xgknqkQk8', 'sub': 'b7xgknqkQk8', 'download_track': True}
youtube_b_metadata = self.metadata_for_mode('youtube', additional_data=data_b) youtube_b_metadata = self.metadata_for_mode('youtube', additional_data=data_b)
...@@ -476,8 +476,8 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -476,8 +476,8 @@ class YouTubeVideoTest(VideoBaseTest):
And I select language with code "en" And I select language with code "en"
Then I see "Welcome to edX." text in the captions Then I see "Welcome to edX." text in the captions
""" """
self.assets.extend(['chinese_transcripts.srt', 'subs_3_yD_cEKoCk.srt.sjson']) self.assets.extend(['chinese_transcripts.srt', 'subs__Szu8hVDvgc.srt.sjson'])
data = {'transcripts': {"zh": "chinese_transcripts.srt"}, 'sub': '3_yD_cEKoCk'} data = {'transcripts': {"zh": "chinese_transcripts.srt"}, 'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data) self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video # go to video
...@@ -604,8 +604,8 @@ class YouTubeVideoTest(VideoBaseTest): ...@@ -604,8 +604,8 @@ class YouTubeVideoTest(VideoBaseTest):
And I see duration "1:56" And I see duration "1:56"
""" """
self.assets.extend(['subs_3_yD_cEKoCk.srt.sjson', 'subs_b7xgknqkQk8.srt.sjson']) self.assets.extend(['subs__Szu8hVDvgc.srt.sjson', 'subs_b7xgknqkQk8.srt.sjson'])
data = {'sub': '3_yD_cEKoCk', 'youtube_id_1_5': 'b7xgknqkQk8'} data = {'sub': '_Szu8hVDvgc', 'youtube_id_1_5': 'b7xgknqkQk8'}
self.metadata = self.metadata_for_mode('youtube', additional_data=data) self.metadata = self.metadata_for_mode('youtube', additional_data=data)
# go to video # go to video
...@@ -887,8 +887,8 @@ class Html5VideoTest(VideoBaseTest): ...@@ -887,8 +887,8 @@ class Html5VideoTest(VideoBaseTest):
And I see the correct non-english text in the captions And I see the correct non-english text in the captions
And the non-english transcript downloads correctly And the non-english transcript downloads correctly
""" """
self.assets.extend(['chinese_transcripts.srt', 'subs_3_yD_cEKoCk.srt.sjson']) self.assets.extend(['chinese_transcripts.srt', 'subs__Szu8hVDvgc.srt.sjson'])
data = {'download_track': True, 'transcripts': {'zh': 'chinese_transcripts.srt'}, 'sub': '3_yD_cEKoCk'} data = {'download_track': True, 'transcripts': {'zh': 'chinese_transcripts.srt'}, 'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('html5', additional_data=data) self.metadata = self.metadata_for_mode('html5', additional_data=data)
# go to video # go to video
...@@ -922,8 +922,8 @@ class Html5VideoTest(VideoBaseTest): ...@@ -922,8 +922,8 @@ class Html5VideoTest(VideoBaseTest):
And I view the video at fullscreen And I view the video at fullscreen
Then the video with the transcript enabled is aligned correctly Then the video with the transcript enabled is aligned correctly
""" """
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
data = {'sub': '3_yD_cEKoCk'} data = {'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('html5', additional_data=data) self.metadata = self.metadata_for_mode('html5', additional_data=data)
# go to video # go to video
...@@ -946,8 +946,8 @@ class Html5VideoTest(VideoBaseTest): ...@@ -946,8 +946,8 @@ class Html5VideoTest(VideoBaseTest):
And I have uploaded an english transcript file to assets And I have uploaded an english transcript file to assets
Then I see the correct text in the captions Then I see the correct text in the captions
""" """
self.assets.append('subs_3_yD_cEKoCk.srt.sjson') self.assets.append('subs__Szu8hVDvgc.srt.sjson')
data = {'sub': '3_yD_cEKoCk'} data = {'sub': '_Szu8hVDvgc'}
self.metadata = self.metadata_for_mode('html5', additional_data=data) self.metadata = self.metadata_for_mode('html5', additional_data=data)
# go to video # go to video
......
...@@ -6,12 +6,12 @@ Feature: LMS.Video component ...@@ -6,12 +6,12 @@ Feature: LMS.Video component
Scenario: Verify that each video in sub-section includes a transcript for Youtube and non-Youtube countries Scenario: Verify that each video in sub-section includes a transcript for Youtube and non-Youtube countries
Given youtube server is up and response time is 2 seconds Given youtube server is up and response time is 2 seconds
And I am registered for the course "test_course" And I am registered for the course "test_course"
And I have a "subs_3_yD_cEKoCk.srt.sjson" transcript file in assets And I have a "subs__Szu8hVDvgc.srt.sjson" transcript file in assets
And I have a "subs_b7xgknqkQk8.srt.sjson" transcript file in assets And I have a "subs_b7xgknqkQk8.srt.sjson" transcript file in assets
And I have a "chinese_transcripts.srt" transcript file in assets And I have a "chinese_transcripts.srt" transcript file in assets
And it has videos "A, B" in "Youtube_HTML5" mode in position "1" of sequential: And it has videos "A, B" in "Youtube_HTML5" mode in position "1" of sequential:
| sub | | sub |
| 3_yD_cEKoCk | | _Szu8hVDvgc |
| b7xgknqkQk8 | | b7xgknqkQk8 |
And a video "C" in "Youtube_HTML5" mode in position "2" of sequential: And a video "C" in "Youtube_HTML5" mode in position "2" of sequential:
| transcripts | | transcripts |
......
...@@ -127,7 +127,7 @@ class TestVideoNonYouTube(TestVideo): ...@@ -127,7 +127,7 @@ class TestVideoNonYouTube(TestVideo):
'metadata': json.dumps(OrderedDict({ 'metadata': json.dumps(OrderedDict({
"saveStateUrl": self.item_descriptor.xmodule_runtime.ajax_url + "/save_user_state", "saveStateUrl": self.item_descriptor.xmodule_runtime.ajax_url + "/save_user_state",
"autoplay": False, "autoplay": False,
"streams": "1.00:3_yD_cEKoCk", "streams": "1.00:_Szu8hVDvgc",
"sub": "a_sub_file.srt.sjson", "sub": "a_sub_file.srt.sjson",
"sources": sources, "sources": sources,
"captionDataDir": None, "captionDataDir": None,
...@@ -181,7 +181,7 @@ class TestGetHtmlMethod(BaseTestXmodule): ...@@ -181,7 +181,7 @@ class TestGetHtmlMethod(BaseTestXmodule):
self.default_metadata_dict = OrderedDict({ self.default_metadata_dict = OrderedDict({
"saveStateUrl": "", "saveStateUrl": "",
"autoplay": settings.FEATURES.get('AUTOPLAY_VIDEOS', True), "autoplay": settings.FEATURES.get('AUTOPLAY_VIDEOS', True),
"streams": "1.00:3_yD_cEKoCk", "streams": "1.00:_Szu8hVDvgc",
"sub": "a_sub_file.srt.sjson", "sub": "a_sub_file.srt.sjson",
"sources": '[]', "sources": '[]',
"captionDataDir": None, "captionDataDir": None,
...@@ -811,7 +811,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule): ...@@ -811,7 +811,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule):
def test_source_not_in_html5sources(self): def test_source_not_in_html5sources(self):
metadata = { metadata = {
'source': 'http://example.org/video.mp4', 'source': 'http://example.org/video.mp4',
'html5_sources': ['http://youtu.be/3_yD_cEKoCk.mp4'], 'html5_sources': ['http://youtu.be/_Szu8hVDvgc.mp4'],
} }
self.initialize_module(metadata=metadata) self.initialize_module(metadata=metadata)
...@@ -839,7 +839,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule): ...@@ -839,7 +839,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule):
metadata = { metadata = {
'track': u'http://some_track.srt', 'track': u'http://some_track.srt',
'source': 'http://example.org/video.mp4', 'source': 'http://example.org/video.mp4',
'html5_sources': ['http://youtu.be/3_yD_cEKoCk.mp4'], 'html5_sources': ['http://youtu.be/_Szu8hVDvgc.mp4'],
'download_video': False, 'download_video': False,
} }
...@@ -856,7 +856,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule): ...@@ -856,7 +856,7 @@ class TestVideoDescriptorInitialization(BaseTestXmodule):
def test_source_is_empty(self): def test_source_is_empty(self):
metadata = { metadata = {
'source': '', 'source': '',
'html5_sources': ['http://youtu.be/3_yD_cEKoCk.mp4'], 'html5_sources': ['http://youtu.be/_Szu8hVDvgc.mp4'],
} }
self.initialize_module(metadata=metadata) self.initialize_module(metadata=metadata)
......
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