Browse Source

import all IEs when testing to resemble more closely the real env

rtmp_test
Filippo Valsorda 12 years ago
parent
commit
f375d4b7de
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      test/test_download.py

+ 2
- 3
test/test_download.py View File

@ -81,9 +81,8 @@ def generator(test_case):
params.update(test_case.get('params', {}))
fd = FileDownloader(params)
fd.add_info_extractor(ie())
for ien in test_case.get('add_ie', []):
fd.add_info_extractor(getattr(youtube_dl.InfoExtractors, ien + 'IE')())
for ie in youtube_dl.InfoExtractors.gen_extractors():
fd.add_info_extractor(ie)
finished_hook_called = set()
def _hook(status):
if status['status'] == 'finished':


Loading…
Cancel
Save