Browse Source

[test_download] Fix download tests for lazy extractors (closes #13554, closes #13757)

master-ytdl-org
squibbysquibby 7 years ago
committed by Sergey M
parent
commit
655c410063
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      test/test_download.py

+ 2
- 2
test/test_download.py View File

@ -92,8 +92,8 @@ class TestDownload(unittest.TestCase):
def generator(test_case, tname): def generator(test_case, tname):
def test_template(self): 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) is_playlist = any(k.startswith('playlist') for k in test_case)
test_cases = test_case.get( test_cases = test_case.get(
'playlist', [] if is_playlist else [test_case]) 'playlist', [] if is_playlist else [test_case])


Loading…
Cancel
Save