Fix error when continuations contents are missing from response (#52)
Always keep response with most results for retries
This commit is contained in:
parent
6d8bbc006d
commit
ca8a73046b
2 changed files with 26 additions and 16 deletions
|
|
@ -107,7 +107,9 @@ class TestYTMusic(unittest.TestCase):
|
|||
|
||||
def test_get_library_songs(self):
|
||||
songs = youtube_brand.get_library_songs(100)
|
||||
self.assertGreater(len(songs), 0)
|
||||
self.assertGreaterEqual(len(songs), 100)
|
||||
songs = youtube_auth.get_library_songs(200, validate_responses=True)
|
||||
self.assertGreaterEqual(len(songs), 200)
|
||||
|
||||
def test_get_library_albums(self):
|
||||
albums = youtube_brand.get_library_albums(100)
|
||||
|
|
|
|||
Loading…
Reference in a new issue