From a285500fbcf69cbedf2df5cf028abeba1108ea50 Mon Sep 17 00:00:00 2001 From: garret Date: Tue, 2 Apr 2024 08:53:55 +0100 Subject: sort out package "building" and metadata --- test_tokens.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100755 test_tokens.py (limited to 'test_tokens.py') diff --git a/test_tokens.py b/test_tokens.py deleted file mode 100755 index ba6475f..0000000 --- a/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 -- cgit v1.2.3-70-g09d2