Simplify setup with CLI tool to create headers_auth file
This commit is contained in:
parent
5d237ddd3c
commit
c038f7dbd5
5 changed files with 70 additions and 9 deletions
|
|
@ -6,6 +6,9 @@ youtube_auth = YTMusic('../headers_auth.json')
|
|||
|
||||
|
||||
class TestYTMusic(unittest.TestCase):
|
||||
def test_setup(self):
|
||||
YTMusic.setup()
|
||||
|
||||
def test_get_playlists(self):
|
||||
playlists = youtube_auth.get_playlists()
|
||||
self.assertGreater(len(playlists), 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue