Commit Graph

60 Commits (d6124e191e17f03fd48acf78db536400607c49d1)

Author SHA1 Message Date
pukkandan 0855702f3f
[test:download] Support testing with `ignore_no_formats_error`
pukkandan 060ac76257
[test] Use `pytest` instead of `nosetests` ()
`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 
Pccode66 7a5c1cfe93
Completely change project name to yt-dlp ()
* 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
Unknown cefecac12c [skip travis] renaming
to avoid using same folder when using pip install for example
Sergey M․ a16c7c033a
[test/helper] Add support for maxcount and count collection len test checkers
Xiao Di Guan 95e42d7336 [extractor/common] Ensure response handle is not prematurely closed before it can be read if it matches expected_status (resolves , closes , resolves )
Yen Chi Hsuan 72f3289ac4
[test/test_socks] Add tests for SOCKS proxies
Yen Chi Hsuan 6c4c7539f2 [test/helper] Check got values to be strings for md5: fields
Seen in PBSIE tests
Yen Chi Hsuan e9c0cdd389 [jython] Introduce compat_os_name
os.name is always 'java' on Jython
Jaime Marquínez Ferrándiz 7d0ada5ff9 [test/helper] Fix style
Use the correct indentation to please flake8
Sergey M․ f88f1b40ce [test/helper] Clarify field for list length mismatch
Sergey M․ 386a7b52d5 [test/helper] Spelling
Sergey M․ 2e885de796 [test/helper] Formatting
Qijiang Fan 687c04cbb8 [test] use descriptive variable name
Qijiang Fan 40c931de4b [test] split expect_dict to two functions
Qijiang Fan 93bc7ef165 [test] recursively check dict and list in expect_info_dict
This allows to use md5:, re:, etc within the str inside a list
or dict.
Sergey M․ 8e2b1be127 [test/helper] Make age_limit checkable field
Sergey M․ 645f814544 [test/helper] Allow dicts for mincount
Yen Chi Hsuan 880ee801cf [tests] Allow multi_video to be tested as playlists
Philipp Hagemeister 9789d7535d [xtube] Fix test case
Philipp Hagemeister f21e915fb9 [test/helper] Render info_dict with a final comma
Philipp Hagemeister 6f53c63df6 [test/helper] Only output a newline for forgotten keys if keys are really missing
Philipp Hagemeister 23d9ded655 [franceculture] Rewrite for new HTML scheme (Fixes )
Philipp Hagemeister dc35bfd2d5 [test/helper] Clarify which keys have to be added
Philipp Hagemeister 7d346331b5 [audiomack:album] Update testcase
Philipp Hagemeister dd622d7c4e [netzkino] Add new extractor (Fixes )
Philipp Hagemeister 0590062925 Respect age_limit when listing extractors (Fixes )
Sergey M․ f74b341dde expect_info_dict actual-expected argument consistency
Philipp Hagemeister 8bdcb436f9 [test_unicode_literals] Fix test
Philipp Hagemeister 155f9550c0 [test/helper] Fix newlines in output of missing test fields
Jouke Waleson 9e1a5b8455 PEP8: applied even more rules
Jouke Waleson 5f6a1245ff PEP8 applied
Philipp Hagemeister 3e6e4999ca [test/helper] Improve output
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.
Philipp Hagemeister 70b7e3fbb6 [generic] Add a test case for direct links with broken HEAD ()
Philipp Hagemeister c64ed2a310 [viddler] Use API
Philipp Hagemeister c0f64ac689 [test/helper] Improve output of missing test definition dictionaries
Philipp Hagemeister 7a08ad7d59 [test/helper] Modernize
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).
Philipp Hagemeister 0990305d2a [generic] Fix rss under Python 2.x and move test to extractor
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.
Philipp Hagemeister 0fd7fd71b4 [test/helper] Do not use deprecated method
Philipp Hagemeister d8624e6a80 [test_playlist] Add and use assertGreaterEqual
Philipp Hagemeister d0a122348e [test/helper] Clarify which field failed an assertion
Philipp Hagemeister c57f775710 [YoutubeDL] Add simple tests for format_note (Closes )
Philipp Hagemeister b9ba5dfa28 [test helper] Correct only_matching test gathering
Philipp Hagemeister 52fadd5fb2 [test_all_urls] Add support for distributed URL matching test definition
Philipp Hagemeister ea38e55fff [instagram] Add support for user profiles (Fixes )
Philipp Hagemeister 257cfebfe6 [test] Move expect_info_dict out of test_download
Philipp Hagemeister ff14fc4964 [test] Rename get_testcases to gettestcases
Apparently, newer versions of nosetests are somewhat over-eager in their test discovery.