Documentation and tests update

Reflect splitting of `get_streaming_data()` off of `get_song()` in
the documentation and tests.
This commit is contained in:
Cory Marshall 2020-11-25 10:42:02 -04:00 • committed by sigma67
commit e95e2d4ee4
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 6 additions and 1 deletions

View file

@ -27,6 +27,7 @@ Browsing
.. automethod:: YTMusic.get_user_playlists
.. automethod:: YTMusic.get_album
.. automethod:: YTMusic.get_song
.. automethod:: YTMusic.get_streaming_data
Watch
--------

View file

@ -81,7 +81,11 @@ class TestYTMusic(unittest.TestCase):
def test_get_song(self):
song = youtube.get_song("ZrOKjDZOtkA")
self.assertGreaterEqual(len(song), 17)
self.assertGreaterEqual(len(song), 16)
def test_get_streaming_data(self):
song = youtube.get_streaming_data("NRUVdGLf2GI")
self.assertEqual(len(song), 3)
###############
# WATCH