projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b2a027f
)
[test_download] Fix download tests for lazy extractors (closes #13554, closes #13757)
author
squibbysquibby
<34315567+squibbysquibby@users.noreply.github.com>
Sun, 21 Jan 2018 11:15:11 +0000
(08:15 -0300)
committer
Sergey M
<dstftw@gmail.com>
Sun, 21 Jan 2018 11:15:11 +0000
(18:15 +0700)
test/test_download.py
patch
|
blob
|
history
diff --git
a/test/test_download.py
b/test/test_download.py
index 209f5f6d673c00c77e040430fda4b5d9b87f9c13..ebe820dfc1990e4df6758795345375375402900b 100644
(file)
--- a/
test/test_download.py
+++ b/
test/test_download.py
@@
-92,8
+92,8
@@
class TestDownload(unittest.TestCase):
def generator(test_case, tname):
def test_template(self):
def generator(test_case, tname):
def test_template(self):
- ie = youtube_dl.extractor.get_info_extractor(test_case['name'])
- other_ies = [get_info_extractor(ie_key) for ie_key in test_case.get('add_ie', [])]
+ ie = youtube_dl.extractor.get_info_extractor(test_case['name'])
()
+ other_ies = [get_info_extractor(ie_key)
()
for ie_key in test_case.get('add_ie', [])]
is_playlist = any(k.startswith('playlist') for k in test_case)
test_cases = test_case.get(
'playlist', [] if is_playlist else [test_case])
is_playlist = any(k.startswith('playlist') for k in test_case)
test_cases = test_case.get(
'playlist', [] if is_playlist else [test_case])