Simplify setup with CLI tool to create headers_auth file

This commit is contained in:
sigma67 2020-03-23 19:51:23 +01:00
commit c038f7dbd5
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
5 changed files with 70 additions and 9 deletions

View file

@ -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)