mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-22 07:43:08 +00:00
[test_download] Improve diagnostic on wrong 'id'
This commit is contained in:
parent
3461f5db06
commit
a84da06f49
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|||
from test.helper import (
|
||||
assertGreaterEqual,
|
||||
expect_warnings,
|
||||
expect_value,
|
||||
get_params,
|
||||
gettestcases,
|
||||
expect_info_dict,
|
||||
|
@ -200,6 +201,7 @@ def generator(test_case, tname):
|
|||
test_case['playlist_duration_sum'], got_duration)
|
||||
|
||||
for tc in test_cases:
|
||||
expect_value(self, res_dict['id'], tc['info_dict']['id'], 'id')
|
||||
tc_filename = get_tc_filename(tc)
|
||||
if not test_case.get('params', {}).get('skip_download', False):
|
||||
self.assertTrue(os.path.exists(tc_filename), msg='Missing file ' + tc_filename)
|
||||
|
|
Loading…
Reference in a new issue