aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:06:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:41:08 +0530
commitf46e2f9d929f395b32b52cdab93dde980a5ddaf1 (patch)
treefc6dbdfd626e74282879a088332ae33efb3aef74 /test
parent9c906919aed256fa900ba25b0387649cad3773e2 (diff)
downloadhypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.tar.lz
hypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.tar.xz
hypervideo-pre-f46e2f9d929f395b32b52cdab93dde980a5ddaf1.zip
Add key `requested_downloads` in the root `info_dict`
Diffstat (limited to 'test')
-rw-r--r--test/test_YoutubeDL.py3
-rwxr-xr-xtest/test_download.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index d2cc423d6..ef52d2069 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -30,6 +30,7 @@ class YDL(FakeYDL):
self.msgs = []
def process_info(self, info_dict):
+ info_dict = info_dict.copy()
info_dict.pop('__original_infodict', None)
self.downloaded_info_dicts.append(info_dict)
@@ -908,7 +909,7 @@ class TestYoutubeDL(unittest.TestCase):
def _match_entry(self, info_dict, incomplete=False):
res = super(FilterYDL, self)._match_entry(info_dict, incomplete)
if res is None:
- self.downloaded_info_dicts.append(info_dict)
+ self.downloaded_info_dicts.append(info_dict.copy())
return res
first = {
diff --git a/test/test_download.py b/test/test_download.py
index d7c469f3d..818a670fb 100755
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -53,7 +53,7 @@ class YoutubeDL(yt_dlp.YoutubeDL):
raise ExtractorError(message)
def process_info(self, info_dict):
- self.processed_info_dicts.append(info_dict)
+ self.processed_info_dicts.append(info_dict.copy())
return super(YoutubeDL, self).process_info(info_dict)