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:
Calen Pennington
2014-02-27 15:36:42 -05:00
committed by Adam Palay
parent 287d84ba95
commit 9d850eec2d
2 changed files with 7 additions and 5 deletions

View File

@@ -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',