add test for infoq
[youtube-dl] / test / test_download.py
index 8b9b833735990ce2655fa7467488d95951f079ae..4a59f6638997df30864337f8473e9138463dbb80 100644 (file)
@@ -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'])