Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
How to write tests where login is required #14691
Comments
|
Specify any params you need in |
What is the purpose of your issue?
Description of your issue, suggested solution and other information
I am creating a new extractor, but it's a service that requires a login to view any content (logins cost money and are for a limited amount of time, if that matters). The site itself is open and the link to the M3U8 file is visible to non-logged-in users, but in order to download the M3U8 file you need to login and provide an HMAC string and/or cookie value. I'm writing the login code now, but I'm wondering if it's possible for me to still write tests for this extractor? I'm following the
YoutubeIEexample, but that doesn't have any tests for the extractors that require login (YoutubeFeedsInfoExtractorandYoutubeFavouritesIEfor example).Obviously it can't test the downloaded file, but passing
skip_downloadparam through doesn't stop_extract_m3u8_formatsfrom attempting to retrieve the m3u8 file and failing.