Fix case where both old and new transcripts are uploaded, but transcript language isn't one of the new transcripts.
This commit is contained in:
committed by
Adam Palay
parent
287d84ba95
commit
9d850eec2d
@@ -208,8 +208,8 @@ class TestGetHtmlMethod(BaseTestXmodule):
|
||||
context = self.item_descriptor.render('student_view').content
|
||||
|
||||
expected_context.update({
|
||||
'transcript_languages': '{"en": "English"}' if self.item_descriptor.sub else '{}',
|
||||
'transcript_language': 'en' if self.item_descriptor.sub else json.dumps(None),
|
||||
'transcript_languages': '{"en": "English"}',
|
||||
'transcript_language': 'en',
|
||||
'transcript_translation_url': self.item_descriptor.xmodule_runtime.handler_url(
|
||||
self.item_descriptor, 'transcript'
|
||||
).rstrip('/?') + '/translation',
|
||||
|
||||
Reference in New Issue
Block a user