aboutsummaryrefslogtreecommitdiff
path: root/test/test_download.py
AgeCommit message (Collapse)Author
2024-06-28[test:download] Raise on network errors (#10283)bashonly
Authored by: bashonly, seproDev Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2024-06-12[cleanup] Add more ruff rules (#10149)sepro
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2023-09-21[test:download] Test for `expected_exception`bashonly
Authored by: at-wat Co-authored-by: Atsushi Watanabe <atsushi.w@ieee.org>
2023-07-15[compat, networking] Deprecate old functions (#2861)coletdjnz
Authored by: coletdjnz, pukkandan
2023-07-15[networking] Rewrite architecture (#2861)coletdjnz
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
2022-11-10[test] Allow `extract_flat` in download testspukkandan
Authored by: coletdjnz, pukkandan
2022-10-25[extractor/zenyandex] Fix extractors (#3750, #5268)Alex Karabanov
Closes #3736 Authored by: lksj, puc9, pukkandan Co-authored-by: puc9 <51006296+puc9@users.noreply.github.com>
2022-08-15Update to ytdl-commit-e6a836dpukkandan
[core] Make `--max-downloads ...` stop immediately on reaching the limit https://github.com/ytdl-org/youtube-dl/commit/e6a836d54ca1d3cd02f3ee45ef707a46f23e8291
2022-08-02[extractor, test] Basic framework for embed tests (#4307)pukkandan
and split download tests so they can be more easily run in CI Authored by: coletdjnz
2022-06-29[cleanup] Misc cleanuppukkandan
2022-06-25[compat] Remove deprecated functions from core codepukkandan
2022-06-25[cleanup] Consistent style for file headspukkandan
2022-06-25[compat] Remove more functionspukkandan
Removing any more will require changes to a large number of extractors
2022-06-21[test] Fix `FakeYDL` signaturespukkandan
Authored by: coletdjnz
2022-06-20Update to ytdl-commit-8a158a9pukkandan
[NHK] Use new API URL https://github.com/ytdl-org/youtube-dl/commit/6508688e88c83bb811653083db9351702cd39a6a Closes #2337, Closes #4063
2022-04-12[cleanup] Sort importspukkandan
Using https://github.com/PyCQA/isort isort -m VERTICAL_HANGING_INDENT --py 36 -l 80 --rr -n --tc .
2022-04-12[cleanup] Upgrade syntaxpukkandan
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
2022-01-03Add key `requested_downloads` in the root `info_dict`pukkandan
2021-08-28[Niconico] Add Search extractors (#672)animelover1984
Authored by: animelover1984, pukkandan
2021-08-10Misc fixes - See descpukkandan
* 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
2021-08-07[tests:download] Add batch testing for extractorspukkandan
Use `test_YourExtractor_all` to invoke them
2021-08-02[test:download] Support testing with `ignore_no_formats_error`pukkandan
2021-07-23[test] Use `pytest` instead of `nosetests` (#482)pukkandan
`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
2021-06-06[cleanup] Point all shebang to `python3` (#372)felix
Authored by: fstirlitz
2021-05-18[test:download] Only extract enough videos for `playlist_mincount`pukkandan
2021-02-25Completely change project name to yt-dlp (#85)Pccode66
* 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
2020-09-02[skip travis] renamingUnknown
to avoid using same folder when using pip install for example
2018-01-21[test_download] Fix download tests for lazy extractors (closes #13554, ↵squibbysquibby
closes #13757)
2017-04-27[test_download] Fix order when testing file's md5Tithen-Firion
2017-04-11[test_download] Fix testing playlists with single video and add commentsSergey M․
2017-04-08[test_download] Remove unused importSergey M․
2017-04-08[test_download] Match info dicts against tests before matching info fileSergey M․
2017-04-08[test_download] typo in commentJohn Hawkinson
2017-04-08[test_download] Improve diagnostic on wrong 'id'John Hawkinson
2017-03-25[test_download] Print additional IEs in summary outputJohn Hawkinson
2017-02-19[travis] Run tests in parallelYen Chi Hsuan
[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
2016-11-17Update coding style after pycodestyle 2.1.0Yen Chi Hsuan
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
2015-10-23[test/test_download] Use extract_flat = 'in_playlist' for playlist itemsJaime Marquínez Ferrándiz
Some playlist extractors return a 'url' result, which wouldn't be resolved.
2015-08-02[test_downloader] Respect --force-generic-extractorSergey M․
2015-04-19[tests] Allow multi_video to be tested as playlistsYen Chi Hsuan
2015-02-01[test_download] Remove references to "file" in test definitionsPhilipp Hagemeister
2014-12-26expect_info_dict actual-expected argument consistencySergey M․
2014-11-26[tests] Remove useless u prefixesPhilipp Hagemeister
2014-11-23PEP8 appliedJouke Waleson
2014-11-16[tests] ModernizePhilipp Hagemeister
2014-11-02[tests] Don't auto init YoutubeDLJaime Marquínez Ferrándiz
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.
2014-11-02[test_download] Fix importPhilipp Hagemeister
2014-10-27[test_download] Improve error messagePhilipp Hagemeister
2014-10-26[generic] Add a test case for direct links with broken HEAD (#4032)Philipp Hagemeister
2014-09-28[vimeo:likes] Add new extractor (Fixes #3835)Philipp Hagemeister