From: Philipp Hagemeister Date: Tue, 1 Jan 2013 20:01:49 +0000 (+0100) Subject: add test for infoq X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=511eda8eda5486ae7ea0ac685197d009164425f7;p=youtube-dl add test for infoq --- diff --git a/test/test_download.py b/test/test_download.py index 8b9b83373..4a59f6638 100644 --- a/test/test_download.py +++ b/test/test_download.py @@ -90,7 +90,8 @@ def generator(test_case): fd.download([test_case['url']]) for tc in test_cases: - self.assertTrue(os.path.exists(tc['file'])) + if not test_case.get('params', {}).get('skip_download', False): + self.assertTrue(os.path.exists(tc['file'])) self.assertTrue(os.path.exists(tc['file'] + '.info.json')) if 'md5' in tc: md5_for_file = _file_md5(tc['file']) diff --git a/test/tests.json b/test/tests.json index 1d7707033..cd72a88e3 100644 --- a/test/tests.json +++ b/test/tests.json @@ -149,5 +149,16 @@ "info_dict": { "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 + } } ]