From 497d77e1aa68bff95b56c87aca79c88d559f4144 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Fri, 31 Dec 2021 10:41:42 +0530 Subject: [KelbyOne] Add extractor (#2181) Closes #2170 Authored by: Ashish0804 --- test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/helper.py') diff --git a/test/helper.py b/test/helper.py index b63a5c897..598f803f4 100644 --- a/test/helper.py +++ b/test/helper.py @@ -211,7 +211,7 @@ def sanitize_got_info_dict(got_dict): # Auto-generated 'autonumber', 'playlist', 'format_index', 'video_ext', 'audio_ext', 'duration_string', 'epoch', - 'fulltitle', 'extractor', 'extractor_key', 'filepath', 'infojson_filename', 'original_url', + 'fulltitle', 'extractor', 'extractor_key', 'filepath', 'infojson_filename', 'original_url', 'n_entries', # Only live_status needs to be checked 'is_live', 'was_live', -- cgit v1.2.3 From 976ae3eabb4893f4768b381c6ba32e911303bc1c Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 7 Jan 2022 17:24:57 +0530 Subject: [youtube] Update tests --- test/helper.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/helper.py') diff --git a/test/helper.py b/test/helper.py index 598f803f4..c9293f81a 100644 --- a/test/helper.py +++ b/test/helper.py @@ -224,6 +224,8 @@ def sanitize_got_info_dict(got_dict): return f'md5:{md5(value)}' elif isinstance(value, list) and len(value) > 10: return f'count:{len(value)}' + elif key.endswith('_count') and isinstance(value, int): + return int return value test_info_dict = { @@ -259,6 +261,8 @@ def expect_info_dict(self, got_dict, expected_dict): def _repr(v): if isinstance(v, compat_str): return "'%s'" % v.replace('\\', '\\\\').replace("'", "\\'").replace('\n', '\\n') + elif isinstance(v, type): + return v.__name__ else: return repr(v) info_dict_str = '' -- cgit v1.2.3 From 6970b6005e9c07c427d368bbe3f71f85878f325e Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 20 Jan 2022 04:27:36 +0530 Subject: [cleanup] Minor fixes Closes #2334 --- test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/helper.py') diff --git a/test/helper.py b/test/helper.py index c9293f81a..ce751462e 100644 --- a/test/helper.py +++ b/test/helper.py @@ -235,7 +235,7 @@ def sanitize_got_info_dict(got_dict): } # display_id may be generated from id - if test_info_dict.get('display_id') == test_info_dict['id']: + if test_info_dict.get('display_id') == test_info_dict.get('id'): test_info_dict.pop('display_id') return test_info_dict -- cgit v1.2.3 From 88f23a18e0a0f5f18ed167b6a319c54255c5dd13 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Mon, 24 Jan 2022 01:21:39 +0530 Subject: [docs,cleanup] Fix linter and misc cleanup Closes #2419 --- test/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/helper.py') diff --git a/test/helper.py b/test/helper.py index ce751462e..1070e0668 100644 --- a/test/helper.py +++ b/test/helper.py @@ -220,7 +220,7 @@ def sanitize_got_info_dict(got_dict): IGNORED_PREFIXES = ('', 'playlist', 'requested', 'webpage') def sanitize(key, value): - if isinstance(value, str) and len(value) > 100: + if isinstance(value, str) and len(value) > 100 and key != 'thumbnail': return f'md5:{md5(value)}' elif isinstance(value, list) and len(value) > 10: return f'count:{len(value)}' -- cgit v1.2.3