aboutsummaryrefslogtreecommitdiff
path: root/test/helper.py
AgeCommit message (Collapse)Author
2023-07-18[test] Fixes for old Pythonsdirkf
2023-07-18[core] Align error reporting methods with yt-dlpdirkf
2023-02-13[feat]: Add support to external downloader aria2p (#31500)teddy171
* feat: add class Aria2pFD * feat: create call_downloader function * feat: a colorful download interface to aria2pFD * feat: change value name * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Typo in suggestion * fix: remove unused value * fix: add not function to return value(0 is normal); add total_seconds to download.eta(timedelta object); add waiting status when hook progress * fix: remove unuse method ..utils.format_bytes * fix: be up to flake8 * fix: be up to flake8 * Apply suggestions from code review * [feat] test external downloader aria2p * [feat] test external downloader aria2p * [fix] test_external_downloader.py * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Apply suggestions from code review Co-authored-by: dirkf <fieldhouse@gmx.net> * Update test/test_external_downloader.py Co-authored-by: dirkf <fieldhouse@gmx.net> * Update test/test_external_downloader.py Co-authored-by: dirkf <fieldhouse@gmx.net> * Update youtube_dl/downloader/external.py Co-authored-by: dirkf <fieldhouse@gmx.net> * refactoring code and fix bugs * Apply suggestions from code review * Rename test_external_downloader.py to test_downloader_external.py --------- Co-authored-by: dirkf <fieldhouse@gmx.net>
2022-10-11[test] Implement string "lambda x: condition(x)" as an expected valuedirkf
Semantics equivalent to `assert condition(got)`
2019-01-16[test/helper] Add support for maxcount and count collection len test checkersSergey M․
2018-11-03[extractor/common] Ensure response handle is not prematurely closed before ↵Xiao Di Guan
it can be read if it matches expected_status (resolves #17195, closes #17846, resolves #17447)
2016-05-10[test/test_socks] Add tests for SOCKS proxiesYen Chi Hsuan
2016-04-09[test/helper] Check got values to be strings for md5: fieldsYen Chi Hsuan
Seen in PBSIE tests
2016-03-03[jython] Introduce compat_os_nameYen Chi Hsuan
os.name is always 'java' on Jython
2015-10-02[test/helper] Fix styleJaime Marquínez Ferrándiz
Use the correct indentation to please flake8
2015-09-30[test/helper] Clarify field for list length mismatchSergey M․
2015-09-30[test/helper] SpellingSergey M․
2015-09-30[test/helper] FormattingSergey M․
2015-09-30[test] use descriptive variable nameQijiang Fan
2015-09-30[test] split expect_dict to two functionsQijiang Fan
2015-09-30[test] recursively check dict and list in expect_info_dictQijiang Fan
This allows to use md5:, re:, etc within the str inside a list or dict.
2015-08-08[test/helper] Make age_limit checkable fieldSergey M․
2015-08-02[test/helper] Allow dicts for mincountSergey M․
2015-04-19[tests] Allow multi_video to be tested as playlistsYen Chi Hsuan
2015-02-18[xtube] Fix test casePhilipp Hagemeister
2015-02-18[test/helper] Render info_dict with a final commaPhilipp Hagemeister
2015-02-18[test/helper] Only output a newline for forgotten keys if keys are really ↵Philipp Hagemeister
missing
2015-02-03[franceculture] Rewrite for new HTML scheme (Fixes #4853)Philipp Hagemeister
2015-01-30[test/helper] Clarify which keys have to be addedPhilipp Hagemeister
2015-01-25[audiomack:album] Update testcasePhilipp Hagemeister
2015-01-09[netzkino] Add new extractor (Fixes #4669)Philipp Hagemeister
2015-01-07Respect age_limit when listing extractors (Fixes #4653)Philipp Hagemeister
2014-12-26expect_info_dict actual-expected argument consistencySergey M․
2014-12-12[test_unicode_literals] Fix testPhilipp Hagemeister
2014-11-26[test/helper] Fix newlines in output of missing test fieldsPhilipp Hagemeister
2014-11-23PEP8: applied even more rulesJouke Waleson
2014-11-23PEP8 appliedJouke Waleson
2014-11-13[test/helper] Improve outputPhilipp 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-10-26[generic] Add a test case for direct links with broken HEAD (#4032)Philipp Hagemeister
2014-10-25[viddler] Use APIPhilipp Hagemeister
2014-09-29[test/helper] Improve output of missing test definition dictionariesPhilipp Hagemeister
2014-09-29[test/helper] ModernizePhilipp Hagemeister
2014-08-28Move playlist tests to extractors.Philipp Hagemeister
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).
2014-08-25[generic] Fix rss under Python 2.x and move test to extractorPhilipp Hagemeister
2014-08-21Allow playlist test definitions in test_download.Philipp Hagemeister
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.
2014-07-23[test/helper] Do not use deprecated methodPhilipp Hagemeister
2014-07-21[test_playlist] Add and use assertGreaterEqualPhilipp Hagemeister
2014-05-13[test/helper] Clarify which field failed an assertionPhilipp Hagemeister
2014-04-30[YoutubeDL] Add simple tests for format_note (Closes #2825)Philipp Hagemeister
2014-04-21[test helper] Correct only_matching test gatheringPhilipp Hagemeister
2014-04-19[test_all_urls] Add support for distributed URL matching test definitionPhilipp Hagemeister
2014-03-23[instagram] Add support for user profiles (Fixes #2606)Philipp Hagemeister
2014-03-23[test] Move expect_info_dict out of test_downloadPhilipp Hagemeister
2014-03-17[test] Rename get_testcases to gettestcasesPhilipp Hagemeister
Apparently, newer versions of nosetests are somewhat over-eager in their test discovery.