Commit Graph

86 Commits (2fcec131f5318f888647cddeb6e3ec118129241b)

Author SHA1 Message Date
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
Jaime Marquínez Ferrándiz 933605d7e8 YoutubeDL: rename `_fd_progress_hooks` back to `_progress_hooks`
In the future it may report more things.
11 years ago
Jaime Marquínez Ferrándiz 8ab470f1b2 Now a new FileDownloader is created when downloading a video
The progress hooks can be added using the method "add_downloader_progress_hook"
11 years ago
Philipp Hagemeister d0efb9ec9a [tests] Remove global_setup function 11 years ago
Philipp Hagemeister 4eb92208a3 Adapt test to changed .info.json name 11 years ago
Jaime Marquínez Ferrándiz 9ee2b5f6f2 tests: don't run the test if any of the extractors listed in the 'add_ie' field is marked as not working 11 years ago
Jaime Marquínez Ferrándiz be97abc247 Set the 'extractor_key' field in the info_dict
It's the string returned by the class method 'ie_key', which allows to retrieve the extractor with 'get_info_extractor'
11 years ago
Jaime Marquínez Ferrándiz 9103bbc5cd Add the 'webpage_url' field to info_dict
The url for the video page, it must allow to reproduce the result.
It's automatically set by YoutubeDL if it's missing.
11 years ago
Filippo Valsorda f6cc16f5d8 [tests] a HTTP 503 is a transient issue 11 years ago
Filippo Valsorda dd508b7c4f [tests] don't fail on network errors
This is suboptimal, but at least this way we will need to look at the logs
only to check for network errors that happen too often, instead of
parsing a ton of lines each time to see if there is some true test failing
11 years ago
Jaime Marquínez Ferrándiz 702665c085 tests: build the filename from the info_dict if the 'file' key is missing
It will need to have the 'id' and 'ext' keys to work.
11 years ago
Philipp Hagemeister 44a5f1718a Simplify tests
* Make them directly executable again
* Move common stuff (md5, parameters) to helper
* Never import *
* General clean up
11 years ago
Filippo Valsorda d3f46b9aa5 Add support for single-test tox runs
Use a sintax like
    tox test.test_download:TestDownload.test_NowVideo
to run the specific test on all the tox environments (Python versions)
11 years ago
Philipp Hagemeister b2ad967e45 Simplify test setup 11 years ago
Philipp Hagemeister f4aac741d5 Move try_rm to test helpers 11 years ago
Jaime Marquínez Ferrándiz b7052e5087 Also print the field that fails if it is a md5 checksum 11 years ago
Jaime Marquínez Ferrándiz bc2884afc1 Print which IE is being skipped in test_download 12 years ago
Jaime Marquínez Ferrándiz 023fa8c440 Add function add_default_info_extractors to YoutubeDL
It adds to the list the ies returned by ge_extractors
12 years ago
Philipp Hagemeister fc2c063e1e Move testcase generator to helper 12 years ago
Philipp Hagemeister 41beccbab0 Use str every time 12 years ago
Philipp Hagemeister 2eb88d953f Allow _TESTS attribute for IEs with multiple tests
This also improves the numbering of duplicate tests
12 years ago
Philipp Hagemeister 6b47c7f24e Allow moving tests into IE files
Allow adding download tests right in the IE file.
This will cut down on merge conflicts and make it more likely that new IE authors will add tests right away.
12 years ago
Filippo Valsorda f7ab6cbe16 add tests for use_cipher_signature videos (#897) and the ability to test multiple videos per IE 12 years ago
Jaime Marquínez Ferrándiz 8222d8de88 Split FileDownloader in two classes: FileDownloader and YoutubeDL
YoutubeDL is the class that coordinates everything
FileDownloader gets a filename and an info dict and downloads the video.
12 years ago
Philipp Hagemeister d1cade5ade Correct module name 12 years ago
Philipp Hagemeister 0824c28c8b Remove mentions of old InfoExtractors module 12 years ago
Philipp Hagemeister 51ce3a75c9 Improve error reporting for downloads 12 years ago
Philipp Hagemeister 828dba2983 Improvge error reporting 12 years ago
Filippo Valsorda ee55fcbe12 switch long info_dict fields checking to md5 12 years ago
Filippo Valsorda 78d3442b12 test: extend the reach of info_dict checking
* print the info_dict in a format suitable to easy adding to tests.json during tests if un-tested fields are detected
* make it possible to put the crc32 in tests.json if the field is too long
* complete the "info_dict" fields in existing tests
* fixed the bugs catched doing this
12 years ago
Filippo Valsorda be95cac157 raise exceptions on warnings during tests - and solve a couple of them 12 years ago
Filippo Valsorda 476203d025 print WARNINGs during test + minor fix to NBAIE 12 years ago
Jaime Marquínez Ferrándiz ba7c775a04 Remove a commented line I forgot.
[ci skip]
12 years ago
Jaime Marquínez Ferrándiz 9341212642 Create a function in InfoExtractors that returns the InfoExtractor class with the given name 12 years ago
Philipp Hagemeister 744435f2a4 Show whole diff in error cases 12 years ago
Filippo Valsorda 90a99c1b5e retry on UnavailableVideoError 12 years ago
Filippo Valsorda f375d4b7de import all IEs when testing to resemble more closely the real env 12 years ago
Filippo Valsorda 8cc83b8dbe Bubble up all the stack of exceptions and retry download tests on timeout errors 12 years ago
Philipp Hagemeister 233a22960a Switch ComedyCentral test to a permanent URL (They delete full episodes older than a month) 12 years ago
Philipp Hagemeister 30e9f4496b Drop md5: spec for now (unused and breaks int values) 12 years ago
Philipp Hagemeister bffbd5f038 Download progress hooks 12 years ago
Philipp Hagemeister d8bbf2018e Aggressive test timeout to catch hanging servers 12 years ago
Philipp Hagemeister 3a648b209c Remove .part files before and after tests 12 years ago
Philipp Hagemeister 511eda8eda add test for infoq 12 years ago
Philipp Hagemeister c073e35b1e Simplify test parameter initialization 12 years ago
Philipp Hagemeister 5c892b0ba9 Adapt test_download to support playlists, and remove race conditions 12 years ago
Philipp Hagemeister 6985325e01 Revert "In tests.json file and md5 join in a 'files' list to handle multiple-file IEs"
This made the JSON structure really unreadable and was a quick fix.

This reverts commit 6535e9511f.
12 years ago