mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Drop md5: spec for now (unused and breaks int values)
This commit is contained in:
parent
6df40dcbe0
commit
30e9f4496b
1 changed files with 1 additions and 5 deletions
|
@ -107,11 +107,7 @@ def _hook(status):
|
||||||
with io.open(tc['file'] + '.info.json', encoding='utf-8') as infof:
|
with io.open(tc['file'] + '.info.json', encoding='utf-8') as infof:
|
||||||
info_dict = json.load(infof)
|
info_dict = json.load(infof)
|
||||||
for (info_field, value) in tc.get('info_dict', {}).items():
|
for (info_field, value) in tc.get('info_dict', {}).items():
|
||||||
if value.startswith('md5:'):
|
self.assertEqual(value, info_dict.get(info_field))
|
||||||
md5_info_value = hashlib.md5(info_dict.get(info_field, '')).hexdigest()
|
|
||||||
self.assertEqual(value[3:], md5_info_value)
|
|
||||||
else:
|
|
||||||
self.assertEqual(value, info_dict.get(info_field))
|
|
||||||
finally:
|
finally:
|
||||||
for tc in test_cases:
|
for tc in test_cases:
|
||||||
_try_rm(tc['file'])
|
_try_rm(tc['file'])
|
||||||
|
|
Loading…
Reference in a new issue