aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_youtube_signature.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-02-03 21:21:42 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-02-03 22:23:24 +0530
commitd5a398988bb4db5ea610e3cb2548f0e084a1137e (patch)
tree0ec7987f7658959928b5f1034b307412b576a721 /test/test_youtube_signature.py
parent455a15e2dcf29b4712d92a89a95ad5f3ddad69a1 (diff)
downloadhypervideo-pre-d5a398988bb4db5ea610e3cb2548f0e084a1137e.tar.lz
hypervideo-pre-d5a398988bb4db5ea610e3cb2548f0e084a1137e.tar.xz
hypervideo-pre-d5a398988bb4db5ea610e3cb2548f0e084a1137e.zip
Update to ytdl-commit-78ce962
[youtube] Support channel search https://github.com/ytdl-org/youtube-dl/commit/78ce962f4fe020994c216dd2671546fbe58a5c67
Diffstat (limited to 'test/test_youtube_signature.py')
-rw-r--r--test/test_youtube_signature.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 537eb8ba2..cb07d3e23 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -120,10 +120,17 @@ class TestPlayerInfo(unittest.TestCase):
class TestSignature(unittest.TestCase):
def setUp(self):
TEST_DIR = os.path.dirname(os.path.abspath(__file__))
- self.TESTDATA_DIR = os.path.join(TEST_DIR, 'testdata')
+ self.TESTDATA_DIR = os.path.join(TEST_DIR, 'testdata/sigs')
if not os.path.exists(self.TESTDATA_DIR):
os.mkdir(self.TESTDATA_DIR)
+ def tearDown(self):
+ try:
+ for f in os.listdir(self.TESTDATA_DIR):
+ os.remove(f)
+ except OSError:
+ pass
+
def t_factory(name, sig_func, url_pattern):
def make_tfunc(url, sig_input, expected_sig):