aboutsummaryrefslogtreecommitdiff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-01 21:01:49 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-01 21:01:49 +0100
commit511eda8eda5486ae7ea0ac685197d009164425f7 (patch)
tree8497fea30332652ad8af6d3af35060bc2187f26f /test/test_download.py
parent5f9551719cf167512c96add4fbc076fe38f7baaf (diff)
downloadyoutube-dl-511eda8eda5486ae7ea0ac685197d009164425f7.tar.xz
add test for infoq
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py3
1 files changed, 2 insertions, 1 deletions
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'])