aboutsummaryrefslogtreecommitdiff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-03 12:11:13 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-11-03 12:11:13 +0100
commit9103bbc5cd11957de2e906e4401dcf4df9511d28 (patch)
treec8adf22aeb2eb553a33d9de51b673a416ff042f9 /test/test_download.py
parentb6c45014aed4b3176be1142958be98d7cb9dbaff (diff)
downloadyoutube-dl-9103bbc5cd11957de2e906e4401dcf4df9511d28.tar.xz
Add the 'webpage_url' field to info_dict
The url for the video page, it must allow to reproduce the result. It's automatically set by YoutubeDL if it's missing.
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_download.py b/test/test_download.py
index dfb04d010..d6cc9ec33 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -148,6 +148,9 @@ def generator(test_case):
# Check for the presence of mandatory fields
for key in ('id', 'url', 'title', 'ext'):
self.assertTrue(key in info_dict.keys() and info_dict[key])
+ # Check for mandatory fields that are automatically set by YoutubeDL
+ for key in ['webpage_url', 'extractor']:
+ self.assertTrue(info_dict.get(key), u'Missing field: %s' % key)
finally:
try_rm_tcs_files()