diff options
author | garret1317 <garret@airmail.cc> | 2025-09-14 15:04:02 +0100 |
---|---|---|
committer | garret1317 <garret@airmail.cc> | 2025-09-14 15:04:02 +0100 |
commit | f3a16083b9f09c132dce6f262a1fb30f672b9441 (patch) | |
tree | b34103226460d7b39c9b17c2e0855de3054712d5 /misc/test_areas.py | |
parent | a88ca60ee514c5347193fc679933a31117bac7ea (diff) | |
download | yt-dlp-rajiko-f3a16083b9f09c132dce6f262a1fb30f672b9441.tar.gz yt-dlp-rajiko-f3a16083b9f09c132dce6f262a1fb30f672b9441.tar.bz2 yt-dlp-rajiko-f3a16083b9f09c132dce6f262a1fb30f672b9441.zip |
rename "misc" -> "contrib"
Diffstat (limited to 'misc/test_areas.py')
-rwxr-xr-x | misc/test_areas.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/misc/test_areas.py b/misc/test_areas.py deleted file mode 100755 index ba6475f..0000000 --- a/misc/test_areas.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 |