|
@ -8,6 +8,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) |
|
|
|
|
|
|
|
|
from test.helper import ( |
|
|
from test.helper import ( |
|
|
assertGreaterEqual, |
|
|
assertGreaterEqual, |
|
|
|
|
|
expect_warnings, |
|
|
get_params, |
|
|
get_params, |
|
|
gettestcases, |
|
|
gettestcases, |
|
|
expect_info_dict, |
|
|
expect_info_dict, |
|
@ -100,6 +101,7 @@ def generator(test_case): |
|
|
if status['status'] == 'finished': |
|
|
if status['status'] == 'finished': |
|
|
finished_hook_called.add(status['filename']) |
|
|
finished_hook_called.add(status['filename']) |
|
|
ydl.add_progress_hook(_hook) |
|
|
ydl.add_progress_hook(_hook) |
|
|
|
|
|
expect_warnings(ydl, test_case.get('expected_warnings', [])) |
|
|
|
|
|
|
|
|
def get_tc_filename(tc): |
|
|
def get_tc_filename(tc): |
|
|
return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {})) |
|
|
return tc.get('file') or ydl.prepare_filename(tc.get('info_dict', {})) |
|
|