aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_download.py
Commit message (Collapse)AuthorAgeFilesLines
* [compat, networking] Deprecate old functions (#2861)coletdjnz2023-07-151-1/+1
| | | | Authored by: coletdjnz, pukkandan
* [networking] Rewrite architecture (#2861)coletdjnz2023-07-151-6/+3
| | | | | | | | | | | | | | | | New networking interface consists of a `RequestDirector` that directs each `Request` to appropriate `RequestHandler` and returns the `Response` or raises `RequestError`. The handlers define adapters to transform its internal Request/Response/Errors to our interfaces. User-facing changes: - Fix issues with per request proxies on redirects for urllib - Support for `ALL_PROXY` environment variable for proxy setting - Support for `socks5h` proxy - Closes https://github.com/yt-dlp/yt-dlp/issues/6325, https://github.com/ytdl-org/youtube-dl/issues/22618, https://github.com/ytdl-org/youtube-dl/pull/28093 - Raise error when using `https` proxy instead of silently converting it to `http` Authored by: coletdjnz
* [test] Allow `extract_flat` in download testspukkandan2022-11-101-1/+3
| | | | Authored by: coletdjnz, pukkandan
* [extractor/zenyandex] Fix extractors (#3750, #5268)Alex Karabanov2022-10-251-1/+2
| | | | | | Closes #3736 Authored by: lksj, puc9, pukkandan Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
* Update to ytdl-commit-e6a836dpukkandan2022-08-151-3/+5
| | | | | [core] Make `--max-downloads ...` stop immediately on reaching the limit https://github.com/ytdl-org/youtube-dl/commit/e6a836d54ca1d3cd02f3ee45ef707a46f23e8291
* [extractor, test] Basic framework for embed tests (#4307)pukkandan2022-08-021-36/+34
| | | | | | and split download tests so they can be more easily run in CI Authored by: coletdjnz
* [cleanup] Misc cleanuppukkandan2022-06-291-1/+5
|
* [compat] Remove deprecated functions from core codepukkandan2022-06-251-2/+1
|
* [cleanup] Consistent style for file headspukkandan2022-06-251-1/+3
|
* [compat] Remove more functionspukkandan2022-06-251-11/+10
| | | | Removing any more will require changes to a large number of extractors
* [test] Fix `FakeYDL` signaturespukkandan2022-06-211-1/+1
| | | | Authored by: coletdjnz
* Update to ytdl-commit-8a158a9pukkandan2022-06-201-3/+3
| | | | | | | [NHK] Use new API URL https://github.com/ytdl-org/youtube-dl/commit/6508688e88c83bb811653083db9351702cd39a6a Closes #2337, Closes #4063
* [cleanup] Sort importspukkandan2022-04-121-8/+7
| | | | | | Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
* [cleanup] Upgrade syntaxpukkandan2022-04-121-9/+5
| | | | | | | | | | Using https://github.com/asottile/pyupgrade 1. `__future__` imports and `coding: utf-8` were removed 2. Files were rewritten with `pyupgrade --py36-plus --keep-percent-format` 3. f-strings were cherry-picked from `pyupgrade --py36-plus` Extractors are left untouched (except removing header) to avoid unnecessary merge conflicts
* Add key `requested_downloads` in the root `info_dict`pukkandan2022-01-031-1/+1
|
* [Niconico] Add Search extractors (#672)animelover19842021-08-281-0/+0
| | | Authored by: animelover1984, pukkandan
* Misc fixes - See descpukkandan2021-08-101-1/+1
| | | | | | | * Remove unnecessary uses of _list_from_options_callback * Fix download tests - Bug from 6e84b21559f586ee4d6affb61688d5c6a0c21221 * Rename ExecAfterDownloadPP to ExecPP and refactor its tests * Ensure _write_ytdl_file closes file handle on error - Potential fix for #517
* [tests:download] Add batch testing for extractorspukkandan2021-08-071-6/+28
| | | | Use `test_YourExtractor_all` to invoke them
* [test:download] Support testing with `ignore_no_formats_error`pukkandan2021-08-021-2/+7
|
* [test] Use `pytest` instead of `nosetests` (#482)pukkandan2021-07-231-2/+4
| | | | `nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099 and will stop working in py 3.10 as can be seen in #480
* [cleanup] Point all shebang to `python3` (#372)felix2021-06-061-1/+1
| | | | Authored by: fstirlitz
* [test:download] Only extract enough videos for `playlist_mincount`pukkandan2021-05-181-0/+1
|
* Completely change project name to yt-dlp (#85)Pccode662021-02-251-6/+6
| | | | | | | | | * All modules and binary names are changed * All documentation references changed * yt-dlp no longer loads youtube-dlc config files * All URLs changed to point to organization account Co-authored-by: Pccode66 Co-authored-by: pukkandan
* [skip travis] renamingUnknown2020-09-021-6/+6
| | | to avoid using same folder when using pip install for example
* [test_download] Fix download tests for lazy extractors (closes #13554, ↵squibbysquibby2018-01-211-2/+2
| | | | closes #13757)
* [test_download] Fix order when testing file's md5Tithen-Firion2017-04-271-1/+1
|
* [test_download] Fix testing playlists with single video and add commentsSergey M․2017-04-111-2/+10
|
* [test_download] Remove unused importSergey M․2017-04-081-1/+0
|
* [test_download] Match info dicts against tests before matching info fileSergey M․2017-04-081-2/+3
|
* [test_download] typo in commentJohn Hawkinson2017-04-081-1/+1
|
* [test_download] Improve diagnostic on wrong 'id'John Hawkinson2017-04-081-0/+2
|
* [test_download] Print additional IEs in summary outputJohn Hawkinson2017-03-251-0/+14
|
* [travis] Run tests in parallelYen Chi Hsuan2017-02-191-3/+8
| | | | | | | | | | | | [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
* Update coding style after pycodestyle 2.1.0Yen Chi Hsuan2016-11-171-0/+2
| | | | | | | | | | 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
* [test/test_download] Use extract_flat = 'in_playlist' for playlist itemsJaime Marquínez Ferrándiz2015-10-231-1/+1
| | | | Some playlist extractors return a 'url' result, which wouldn't be resolved.
* [test_downloader] Respect --force-generic-extractorSergey M․2015-08-021-1/+3
|
* [tests] Allow multi_video to be tested as playlistsYen Chi Hsuan2015-04-191-1/+1
|
* [test_download] Remove references to "file" in test definitionsPhilipp Hagemeister2015-02-011-2/+2
|
* expect_info_dict actual-expected argument consistencySergey M․2014-12-261-2/+2
|
* [tests] Remove useless u prefixesPhilipp Hagemeister2014-11-261-2/+2
|
* PEP8 appliedJouke Waleson2014-11-231-2/+11
|
* [tests] ModernizePhilipp Hagemeister2014-11-161-2/+4
|
* [tests] Don't auto init YoutubeDLJaime Marquínez Ferrándiz2014-11-021-1/+1
| | | | | 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.
* [test_download] Fix importPhilipp Hagemeister2014-11-021-1/+3
|
* [test_download] Improve error messagePhilipp Hagemeister2014-10-271-1/+3
|
* [generic] Add a test case for direct links with broken HEAD (#4032)Philipp Hagemeister2014-10-261-0/+2
|
* [vimeo:likes] Add new extractor (Fixes #3835)Philipp Hagemeister2014-09-281-1/+3
|
* [test_download] Check expected file minsize and md5 only when download is ↵Sergey M․2014-08-291-13/+13
| | | | not skipped
* [test_download] Expect a minimum file sizePhilipp Hagemeister2014-08-281-0/+11
| | | | This should detect when we're downloading a small text file by accident.
* Move playlist tests to extractors.Philipp Hagemeister2014-08-281-2/+3
| | | | 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).