diff --git a/common/lib/xmodule/xmodule/tests/test_video.py b/common/lib/xmodule/xmodule/tests/test_video.py index 0e2db392a2..1addb31451 100644 --- a/common/lib/xmodule/xmodule/tests/test_video.py +++ b/common/lib/xmodule/xmodule/tests/test_video.py @@ -716,7 +716,12 @@ class VideoExportTestCase(VideoDescriptorTestBase): Test that we write the correct XML on export. """ edx_video_id = u'test_edx_video_id' - mock_val_api.export_to_xml = Mock(return_value=etree.Element('video_asset')) + mock_val_api.export_to_xml = Mock( + return_value=dict( + xml=etree.Element('video_asset'), + transcripts={} + ) + ) self.descriptor.youtube_id_0_75 = 'izygArpw-Qo' self.descriptor.youtube_id_1_0 = 'p2Q6BrNhdh8' self.descriptor.youtube_id_1_25 = '1EeWXzPdhSA' @@ -736,14 +741,23 @@ class VideoExportTestCase(VideoDescriptorTestBase): xml = self.descriptor.definition_to_xml(self.file_system) parser = etree.XMLParser(remove_blank_text=True) xml_string = '''\ -