Skip to content

Commit

Permalink
Fix empty transcripts generator case
Browse files Browse the repository at this point in the history
  • Loading branch information
wowkalucky committed Feb 8, 2018
1 parent 13ba99c commit fa4657c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions video_xblock/tests/unit/test_video_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def test_student_view(self, route_transcripts, resource_string_mock, render_reso
render_resource_mock.return_value = u'<iframe/>'
handler_url = self.xblock.runtime.handler_url = Mock()
handler_url.side_effect = ['/player/url', '/transcript/download/url']
route_transcripts.return_value = 'transcripts.vtt'
route_transcripts.return_value = ['transcripts.vtt']
self.xblock.get_transcript_download_link = Mock(return_value='/transcript/link.vtt')
self.xblock.threeplaymedia_streaming = True

Expand All @@ -143,7 +143,7 @@ def test_student_view(self, route_transcripts, resource_string_mock, render_reso
handout_file_name='',
player_url='/player/url',
transcript_download_link='/transcript/download/url'+'/transcript/link.vtt',
transcripts='transcripts.vtt',
transcripts=['transcripts.vtt'],
usage_id='usage_id',
version=__version__,
)
Expand Down
2 changes: 1 addition & 1 deletion video_xblock/video_xblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def student_view(self, _context=None):
'display_name': self.display_name,
'usage_id': self.usage_id,
'handout': self.handout,
'transcripts': self.route_transcripts(),
'transcripts': list(self.route_transcripts()),
'download_transcript_allowed': self.download_transcript_allowed,
'transcripts_streaming_enabled': self.threeplaymedia_streaming,
'download_video_url': self.get_download_video_url(),
Expand Down

0 comments on commit fa4657c

Please sign in to comment.