Support song order for get_library_upload_songs

This commit is contained in:
ide-an 2020-11-09 02:17:39 +09:00 • committed by sigma67
commit 19e9053706
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
2 changed files with 17 additions and 1 deletions

View file

@ -215,6 +215,12 @@ class TestYTMusic(unittest.TestCase):
def test_get_library_upload_songs(self):
results = youtube_auth.get_library_upload_songs(100)
self.assertGreater(len(results), 25)
results = youtube_auth.get_library_upload_songs(100, 'a_to_z')
self.assertGreater(len(results), 25)
results = youtube_auth.get_library_upload_songs(100, 'z_to_a')
self.assertGreater(len(results), 25)
results = youtube_auth.get_library_upload_songs(100, 'recently_added')
self.assertGreater(len(results), 25)
@unittest.skip("Must not have any uploaded songs to pass")
def test_get_library_upload_songs_empty(self):