aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tests/test_tokens.py
diff options
context:
space:
mode:
authorgarret1317 <garret@airmail.cc>2025-10-16 09:24:13 +0100
committergarret1317 <garret@airmail.cc>2025-10-16 09:24:13 +0100
commit5c7029e614ae162c5080e6a9619a86f0bb273e4f (patch)
tree679e317b0c4a3bddb8557f8187baed74a3124174 /tests/test_tokens.py
parent8e0bcc6875922667b04c26129d7f2eb4aa36bd0b (diff)
parentbd3436ba0b71b2f87f83afd329a4ad202a59cedb (diff)
downloadyt-dlp-rajiko-5c7029e614ae162c5080e6a9619a86f0bb273e4f.tar.gz
yt-dlp-rajiko-5c7029e614ae162c5080e6a9619a86f0bb273e4f.tar.bz2
yt-dlp-rajiko-5c7029e614ae162c5080e6a9619a86f0bb273e4f.zip
Merge branch 'master' into aSmartPhone8
KNOWN ISSUE: TF30 doesn't work - account doesn't get passed to new auth API
Diffstat (limited to 'tests/test_tokens.py')
-rwxr-xr-xtests/test_tokens.py26
1 files changed, 0 insertions, 26 deletions
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