projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
190717e
)
Correct module name
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 20:53:42 +0000
(22:53 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 23 Jun 2013 20:53:42 +0000
(22:53 +0200)
test/test_download.py
patch
|
blob
|
history
diff --git
a/test/test_download.py
b/test/test_download.py
index f3e56e9aea7699cda7a7c5b78ae60f45cf7c15b1..8d869847821877042a3a73cc4939f833f17cd37b 100644
(file)
--- a/
test/test_download.py
+++ b/
test/test_download.py
@@
-14,7
+14,7
@@
import binascii
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import youtube_dl.FileDownloader
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import youtube_dl.FileDownloader
-import youtube_dl.extractor
s
+import youtube_dl.extractor
from youtube_dl.utils import *
DEF_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tests.json')
from youtube_dl.utils import *
DEF_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'tests.json')
@@
-72,7
+72,7
@@
class TestDownload(unittest.TestCase):
def generator(test_case):
def test_template(self):
def generator(test_case):
def test_template(self):
- ie = youtube_dl.extractor
s
.get_info_extractor(test_case['name'])
+ ie = youtube_dl.extractor.get_info_extractor(test_case['name'])
if not ie._WORKING:
print('Skipping: IE marked as not _WORKING')
return
if not ie._WORKING:
print('Skipping: IE marked as not _WORKING')
return
@@
-87,7
+87,7
@@
def generator(test_case):
params.update(test_case.get('params', {}))
fd = FileDownloader(params)
params.update(test_case.get('params', {}))
fd = FileDownloader(params)
- for ie in youtube_dl.extractor
s
.gen_extractors():
+ for ie in youtube_dl.extractor.gen_extractors():
fd.add_info_extractor(ie)
finished_hook_called = set()
def _hook(status):
fd.add_info_extractor(ie)
finished_hook_called = set()
def _hook(status):