1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-24 08:42:30 +00:00

add test for infoq

This commit is contained in:
Philipp Hagemeister 2013-01-01 21:01:49 +01:00
parent 5f9551719c
commit 511eda8eda
2 changed files with 13 additions and 1 deletions

View file

@ -90,6 +90,7 @@ def generator(test_case):
fd.download([test_case['url']]) fd.download([test_case['url']])
for tc in test_cases: for tc in test_cases:
if not test_case.get('params', {}).get('skip_download', False):
self.assertTrue(os.path.exists(tc['file'])) self.assertTrue(os.path.exists(tc['file']))
self.assertTrue(os.path.exists(tc['file'] + '.info.json')) self.assertTrue(os.path.exists(tc['file'] + '.info.json'))
if 'md5' in tc: if 'md5' in tc:

View file

@ -149,5 +149,16 @@
"info_dict": { "info_dict": {
"title": "Young Americans for Liberty February 7, 2012 2:28 AM" "title": "Young Americans for Liberty February 7, 2012 2:28 AM"
} }
},
{
"name": "InfoQ",
"url": "http://www.infoq.com/presentations/A-Few-of-My-Favorite-Python-Things",
"file": "12-jan-pythonthings.mp4",
"info_dict": {
"title": "A Few of My Favorite [Python] Things"
},
"params": {
"skip_download": true
}
} }
] ]