diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-03 12:11:13 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-11-03 12:11:13 +0100 |
commit | 9103bbc5cd11957de2e906e4401dcf4df9511d28 (patch) | |
tree | c8adf22aeb2eb553a33d9de51b673a416ff042f9 /test | |
parent | b6c45014aed4b3176be1142958be98d7cb9dbaff (diff) |
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')
-rw-r--r-- | test/test_download.py | 3 |
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() |