mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-23 08:17:00 +00:00
Improvge error reporting
This commit is contained in:
parent
6b3f5a329b
commit
828dba2983
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ def generator(test_case):
|
||||||
if isinstance(value, compat_str) and value.startswith('md5:'):
|
if isinstance(value, compat_str) and value.startswith('md5:'):
|
||||||
self.assertEqual(value, 'md5:' + md5(info_dict.get(info_field)))
|
self.assertEqual(value, 'md5:' + md5(info_dict.get(info_field)))
|
||||||
else:
|
else:
|
||||||
self.assertEqual(value, info_dict.get(info_field))
|
self.assertEqual(value, info_dict.get(info_field), u'invalid value for field ' + info_field)
|
||||||
|
|
||||||
# If checkable fields are missing from the test case, print the info_dict
|
# If checkable fields are missing from the test case, print the info_dict
|
||||||
test_info_dict = dict((key, value if not isinstance(value, compat_str) or len(value) < 250 else 'md5:' + md5(value))
|
test_info_dict = dict((key, value if not isinstance(value, compat_str) or len(value) < 250 else 'md5:' + md5(value))
|
||||||
|
|
Loading…
Reference in a new issue