dirkf
3bde6a5752
[test] Improve download test
...
* skip reason can't be unicode in Py2
* remove duplicate assert...Equal functions
7 months ago
dirkf
c2766cb80e
[test/test_download] Support 'playlist_maxcount:count' expected value
...
* parallel to `playlist_mincount'
* specify both for a range of playlist lengths
* if max < min the test will always fail!
8 months ago
dirkf
a25e9f3c84
[compat] Use `compat_open()`
1 year ago
dirkf
e67e52a8f8
[test] Support test-case with volatile ID (eg live show)
...
Signalled by regexp ID value, eg: `'id': r're:[\da-zA-Z_-]{8,}'`
2 years ago
dirkf
deee741fb1
[test, etc] Improve download test logs; also clean up some new flake8 issues ( #31153 )
...
* [test] Identify testcase errors better
* [test] Identify download errors better
* [extractor/minds] Linter
* [extractor/aes] Linter
2 years ago
dirkf
11665dd236
[test] Fix linter for 3aa94d7945
3 years ago
dirkf
ef044be34b
[test] Skip not _WORKING IE in subtitle tests; use unittest.skipTest throughout
3 years ago
dirkf
73e1ab6125
[test:download] Only extract enough videos for playlist_mincount
3 years ago
squibbysquibby
655c410063
[test_download] Fix download tests for lazy extractors ( closes #13554 , closes #13757 )
7 years ago
Tithen-Firion
374560f018
[test_download] Fix order when testing file's md5
8 years ago
Sergey M․
364a69e8c6
[test_download] Fix testing playlists with single video and add comments
8 years ago
Sergey M․
60e5016199
[test_download] Remove unused import
8 years ago
Sergey M․
80b2fdf9ac
[test_download] Match info dicts against tests before matching info file
8 years ago
John Hawkinson
3bef10a50c
[test_download] typo in comment
8 years ago
John Hawkinson
a84da06f49
[test_download] Improve diagnostic on wrong 'id'
8 years ago
John Hawkinson
c6c22e984d
[test_download] Print additional IEs in summary output
8 years ago
Yen Chi Hsuan
8936f68a0b
[travis] Run tests in parallel
...
[test_download] Print test names in case of network errors
[test_download] Add comments for nose parameters
[test_download] Modify outtmpl to prevent info JSON filename conflicts
Thanks @jaimeMF for the idea.
[travis] Only download tests should be run in parallel
8 years ago
Yen Chi Hsuan
582be35847
Update coding style after pycodestyle 2.1.0
...
In pycodestyle 2.1.0, E305 was introduced, which requires two blank
lines after top level declarations, too.
See https://github.com/PyCQA/pycodestyle/issues/400
See also #10689 ; thanks @stepshal for first mentioning this issue and
initial patches
8 years ago
Jaime Marquínez Ferrándiz
65d49afa48
[test/test_download] Use extract_flat = 'in_playlist' for playlist items
...
Some playlist extractors return a 'url' result, which wouldn't be resolved.
9 years ago
Sergey M․
308cfe0ab3
[test_downloader] Respect --force-generic-extractor
10 years ago
Yen Chi Hsuan
880ee801cf
[tests] Allow multi_video to be tested as playlists
10 years ago
Philipp Hagemeister
4e980275b5
[test_download] Remove references to "file" in test definitions
10 years ago
Sergey M․
f74b341dde
expect_info_dict actual-expected argument consistency
10 years ago
Philipp Hagemeister
e075a44afb
[tests] Remove useless u prefixes
10 years ago
Jouke Waleson
5f6a1245ff
PEP8 applied
10 years ago
Philipp Hagemeister
a0f59cdcb4
[tests] Modernize
10 years ago
Jaime Marquínez Ferrándiz
ac35c26686
[tests] Don't auto init YoutubeDL
...
It would print the debug headers for each test.
And nose uses a StringIO object for stdout, which in python 2.x doesn't have the 'encoding' attribute.
10 years ago
Philipp Hagemeister
42f7d2f588
[test_download] Fix import
10 years ago
Philipp Hagemeister
f744c0f398
[test_download] Improve error message
10 years ago
Philipp Hagemeister
70b7e3fbb6
[generic] Add a test case for direct links with broken HEAD ( #4032 )
10 years ago
Philipp Hagemeister
d6e6a42256
[vimeo:likes] Add new extractor ( Fixes #3835 )
10 years ago
Sergey M․
08a36c3569
[test_download] Check expected file minsize and md5 only when download is not skipped
10 years ago
Philipp Hagemeister
753727cded
[test_download] Expect a minimum file size
...
This should detect when we're downloading a small text file by accident.
10 years ago
Philipp Hagemeister
22a6f15061
Move playlist tests to extractors.
...
From now on, test_download will run these tests. That means we benefit not only from the networking setup in there, but also from the other tests (for example test_all_urls to find problems with _VALID_URLs).
10 years ago
Philipp Hagemeister
2857084000
[test_download] Improve playlist handling
10 years ago
Philipp Hagemeister
0990305d2a
[generic] Fix rss under Python 2.x and move test to extractor
10 years ago
Philipp Hagemeister
829476b80a
[googlesearch] Move test to extractor
10 years ago
Philipp Hagemeister
e8ee972c6e
Allow playlist test definitions in test_download.
...
This moves playlist tests where they belong, i.e. to the extractors themselves.
Additionally, all our network interaction configuration for tests in test_download now applies to playlist tests as well.
11 years ago
Philipp Hagemeister
0c92b57398
Remove unused imports
11 years ago
Philipp Hagemeister
ea38e55fff
[instagram] Add support for user profiles ( Fixes #2606 )
11 years ago
Philipp Hagemeister
257cfebfe6
[test] Move expect_info_dict out of test_download
11 years ago
Philipp Hagemeister
a9c2896e22
Make missing test definition fields an error
...
If the result is not testable (for example, because a description changes often), either pass in a type or a regular expression (a string starting with 're:')
11 years ago
Philipp Hagemeister
ff14fc4964
[test] Rename get_testcases to gettestcases
...
Apparently, newer versions of nosetests are somewhat over-eager in their test discovery.
11 years ago
Philipp Hagemeister
955c451456
Rename upload_timestamp to timestamp
11 years ago
Philipp Hagemeister
2a1db721d4
[test_download] Move assertions before debugging output
11 years ago
Philipp Hagemeister
84769e708c
[ninegag] Fix extraction
11 years ago
Philipp Hagemeister
2437fbca64
[tests] Raise an exception if test definition is invalid (Found in #2460 )
11 years ago
Philipp Hagemeister
491ed3dda2
[trutube] Support multiple formats ( #2433 )
11 years ago
Philipp Hagemeister
dcf3eec47a
[test_download] Skip over BadStatusLine errors
...
An error like https://travis-ci.org/rg3/youtube-dl/jobs/18317799#L449 is almost certainly the server's fault.
11 years ago
Philipp Hagemeister
484aaeb204
[everyonesmixtape] Add support ( Fixes #2161 )
11 years ago