projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[arte] Set the format_note and the format_id fields (closes #1628)
[youtube-dl]
/
test
/
test_dailymotion_subtitles.py
diff --git
a/test/test_dailymotion_subtitles.py
b/test/test_dailymotion_subtitles.py
index ed2ad311df0035010be978e3515e88e18f7ba11a..c596415c4189624d254f72afd7b7bd7452d9fe50 100644
(file)
--- a/
test/test_dailymotion_subtitles.py
+++ b/
test/test_dailymotion_subtitles.py
@@
-1,18
+1,16
@@
#!/usr/bin/env python
#!/usr/bin/env python
+# Allow direct execution
+import os
import sys
import unittest
import sys
import unittest
-import hashlib
+sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-# Allow direct execution
-import os
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from test.helper import FakeYDL, global_setup, md5
+global_setup()
-from youtube_dl.extractor import DailymotionIE
-from youtube_dl.utils import *
-from helper import FakeYDL
-md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest()
+from youtube_dl.extractor import DailymotionIE
class TestDailymotionSubtitles(unittest.TestCase):
def setUp(self):
class TestDailymotionSubtitles(unittest.TestCase):
def setUp(self):