From e95e2d4ee45c04cc2a78ebdb94b529e384f43acd Mon Sep 17 00:00:00 2001 From: Cory Marshall Date: Wed, 25 Nov 2020 10:42:02 -0400 Subject: [PATCH] Documentation and tests update Reflect splitting of `get_streaming_data()` off of `get_song()` in the documentation and tests. --- docs/source/reference.rst | 1 + tests/test.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/reference.rst b/docs/source/reference.rst index 9d9d26e..801554d 100644 --- a/docs/source/reference.rst +++ b/docs/source/reference.rst @@ -27,6 +27,7 @@ Browsing .. automethod:: YTMusic.get_user_playlists .. automethod:: YTMusic.get_album .. automethod:: YTMusic.get_song +.. automethod:: YTMusic.get_streaming_data Watch -------- diff --git a/tests/test.py b/tests/test.py index 582a0df..2bfd4d1 100644 --- a/tests/test.py +++ b/tests/test.py @@ -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