Add skipped unit tests that would verify no errors are returned when there's 0 uploads
This commit is contained in:
parent
66442320a1
commit
07215a6520
1 changed files with 12 additions and 1 deletions
|
|
@ -134,7 +134,8 @@ class TestYTMusic(unittest.TestCase):
|
|||
@unittest.skip
|
||||
def test_remove_history_items(self):
|
||||
songs = youtube_auth.get_history()
|
||||
response = youtube_auth.remove_history_items([songs[0]['feedbackToken'], songs[1]['feedbackToken']])
|
||||
response = youtube_auth.remove_history_items(
|
||||
[songs[0]['feedbackToken'], songs[1]['feedbackToken']])
|
||||
self.assertIn('feedbackResponses', response)
|
||||
|
||||
def test_rate_song(self):
|
||||
|
|
@ -211,10 +212,20 @@ class TestYTMusic(unittest.TestCase):
|
|||
results = youtube_auth.get_library_upload_songs(100)
|
||||
self.assertGreater(len(results), 25)
|
||||
|
||||
@unittest.skip("Must not have any uploaded songs to pass")
|
||||
def test_get_library_upload_songs_empty(self):
|
||||
results = youtube_auth.get_library_upload_songs(100)
|
||||
self.assertEquals(len(results), 0)
|
||||
|
||||
def test_get_library_upload_albums(self):
|
||||
results = youtube_auth.get_library_upload_albums(50)
|
||||
self.assertGreater(len(results), 25)
|
||||
|
||||
@unittest.skip("Must not have any uploaded albums to pass")
|
||||
def test_get_library_upload_albums_empty(self):
|
||||
results = youtube_auth.get_library_upload_albums(100)
|
||||
self.assertEquals(len(results), 0)
|
||||
|
||||
def test_get_library_upload_artists(self):
|
||||
results = youtube_auth.get_library_upload_artists(50)
|
||||
self.assertGreater(len(results), 25)
|
||||
|
|
|
|||
Loading…
Reference in a new issue