diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-07-23 20:18:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 20:18:15 +0530 |
commit | 060ac76257a8c1f7370a8a571821c1d73377701f (patch) | |
tree | 00151756376ba250a7de158f3218ae58b89c560b /test/test_youtube_signature.py | |
parent | 063c409dfb6b0d525cbbd6ba1fbb53db2c0c99db (diff) | |
download | hypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.tar.lz hypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.tar.xz hypervideo-pre-060ac76257a8c1f7370a8a571821c1d73377701f.zip |
[test] Use `pytest` instead of `nosetests` (#482)
`nosetests` is no longer being maintained : https://github.com/nose-devs/nose/issues/1099
and will stop working in py 3.10 as can be seen in #480
Diffstat (limited to 'test/test_youtube_signature.py')
-rw-r--r-- | test/test_youtube_signature.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py index 1a5063bab..dcf6ab60d 100644 --- a/test/test_youtube_signature.py +++ b/test/test_youtube_signature.py @@ -12,7 +12,7 @@ import io import re import string -from test.helper import FakeYDL +from test.helper import FakeYDL, is_download_test from yt_dlp.extractor import YoutubeIE from yt_dlp.compat import compat_str, compat_urlretrieve @@ -65,6 +65,7 @@ _TESTS = [ ] +@is_download_test class TestPlayerInfo(unittest.TestCase): def test_youtube_extract_player_info(self): PLAYER_URLS = ( @@ -87,6 +88,7 @@ class TestPlayerInfo(unittest.TestCase): self.assertEqual(player_id, expected_player_id) +@is_download_test class TestSignature(unittest.TestCase): def setUp(self): TEST_DIR = os.path.dirname(os.path.abspath(__file__)) |