Feature: remove_history_items (closes #31)

This commit is contained in:
sigma67 2020-08-27 12:28:17 +02:00
commit dad63116df
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
4 changed files with 31 additions and 3 deletions

View file

@ -129,6 +129,12 @@ class TestYTMusic(unittest.TestCase):
songs = youtube_auth.get_history()
self.assertGreater(len(songs), 0)
@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']])
self.assertIn('feedbackResponses', response)
def test_rate_song(self):
response = youtube_auth.rate_song('ZrOKjDZOtkA', 'LIKE')
self.assertIn('actions', response)