Add multiple transcripts editor.
Fix donwload subs for non youtube videos and non-en language - continue. Add acceptance tests. Add detetion of assets on request. Updated docstring. Add fixes and acceptance tests. Fix acceptance tests. Update docsrtings and cleanup code, resful for language_id. Specify exception type in POST. Fix url in upload module. Improve exception handling. Remove 'en' and catching in editable_metadata. Move descriptor.get_context test to lms tests. Add query parameter to translation dispatch. Response to format parameter of translatin GET request. Fix Acceprance test: Metadata Editor. move handlers to proper scores. Split video player into smaller files. Add ugettext and fix typoes. Add changelog. Support for downloading non-ascii filenames. Change event binding. Add content-language to download requests. Reractor POST handler to not update self.transcripts.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
""" Tests for transcripts_utils. """
|
||||
import unittest
|
||||
from uuid import uuid4
|
||||
@@ -548,3 +549,15 @@ class TestTranscript(unittest.TestCase):
|
||||
def test_convert_srt_to_sjson(self):
|
||||
with self.assertRaises(NotImplementedError):
|
||||
transcripts_utils.Transcript.convert(self.srt_transcript, 'srt', 'sjson')
|
||||
|
||||
|
||||
class TestSubsFilename(unittest.TestCase):
|
||||
"""
|
||||
Tests for subs_filename funtion.
|
||||
"""
|
||||
|
||||
def test_unicode(self):
|
||||
name = transcripts_utils.subs_filename(u"˙∆©ƒƒƒ")
|
||||
self.assertEqual(name, u'subs_˙∆©ƒƒƒ.srt.sjson')
|
||||
name = transcripts_utils.subs_filename(u"˙∆©ƒƒƒ", 'uk')
|
||||
self.assertEqual(name, u'uk_subs_˙∆©ƒƒƒ.srt.sjson')
|
||||
|
||||
Reference in New Issue
Block a user