diff options
author | garret <garret@airmail.cc> | 2024-08-11 11:43:12 +0100 |
---|---|---|
committer | garret <garret@airmail.cc> | 2024-08-11 11:43:12 +0100 |
commit | b5298403470347bfba79130c49bb7dca7ee906d8 (patch) | |
tree | 458efb22b87b2fb693d98e2c3418e5af39346dfa /tests | |
parent | 032c7951143e6452aeda34863bb38fed7ad26d3e (diff) | |
download | yt-dlp-rajiko-b5298403470347bfba79130c49bb7dca7ee906d8.tar.gz yt-dlp-rajiko-b5298403470347bfba79130c49bb7dca7ee906d8.tar.bz2 yt-dlp-rajiko-b5298403470347bfba79130c49bb7dca7ee906d8.zip |
move misc stuff to "misc" folder
the tests arent tests really, probably shouldnt give that impression
+ maybe now they wont get automatically included in the build
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_randominfo.py | 14 | ||||
-rwxr-xr-x | tests/test_tokens.py | 26 |
2 files changed, 0 insertions, 40 deletions
diff --git a/tests/test_randominfo.py b/tests/test_randominfo.py deleted file mode 100755 index bd71fdc..0000000 --- a/tests/test_randominfo.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python3 -import unittest - -from yt_dlp_plugins.extractor import radiko -from yt_dlp import YoutubeDL - - -ie = radiko._RadikoBaseIE() -ydl = YoutubeDL(auto_init=False) -ie.set_downloader(ydl) - -info = ie._generate_random_info() -print("random device info") -print(info) diff --git a/tests/test_tokens.py b/tests/test_tokens.py deleted file mode 100755 index ba6475f..0000000 --- a/tests/test_tokens.py +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env python3 -import unittest - -from yt_dlp_plugins.extractor import radiko -from yt_dlp import YoutubeDL - - -class test_tokens(unittest.TestCase): - - def setUp(self): - self.ie = radiko._RadikoBaseIE() - ydl = YoutubeDL(auto_init=False) - self.ie.set_downloader(ydl) - - def test_area(self): - # check areas etc work - for i in range(1, 48): - area = "JP" + str(i) - with self.subTest(f"Negotiating token for {area}", area=area): - token = self.ie._negotiate_token(area) - self.assertEqual(token.get("X-Radiko-AreaId"), area) - - -if __name__ == '__main__': - unittest.main() - # may wish to set failfast=True |