1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 21:03:22 +08:00

Revert "[test/test_download] In test we download 10000 bytes at max"

This reverts commit 87c82b2b3d.
This commit is contained in:
Petr Novak 2017-11-25 01:51:20 +01:00
parent bf4f780ba7
commit 8e189bb1f9
2 changed files with 4 additions and 2 deletions

View File

@ -216,7 +216,7 @@ def generator(test_case, tname):
expected_minsize = tc.get('file_minsize', 10000)
if expected_minsize is not None:
if params.get('test'):
expected_minsize = min(expected_minsize, 10000)
expected_minsize = max(expected_minsize, 10000)
got_fsize = os.path.getsize(tc_filename)
assertGreaterEqual(
self, got_fsize, expected_minsize,

View File

@ -16,7 +16,9 @@ class SeznamZpravyIE(InfoExtractor):
_TESTS = [{
# two videos on one page, with SDN URL
'url': 'https://www.seznam.cz/zpravy/clanek/jejich-svet-na-nas-utoci-je-lepsi-branit-se-na-jejich-pisecku-rika-reziser-a-major-v-zaloze-marhoul-35990',
'file_minsize': 1586,
'params': {'skip_download': True},
# ^ this is here instead of 'file_minsize': 1586, which does not work because
# test_download.py forces expected_minsize to at least 10k when test is running
'info_dict': {
'id': '35990',
'ext': 'mp4',