Feature: add edit_song_library_status (closes #68)

This commit is contained in:
sigma67 2020-12-15 15:54:22 +01:00
commit 3eee8795da
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
3 changed files with 23 additions and 0 deletions

View file

@ -196,6 +196,15 @@ class TestYTMusic(unittest.TestCase):
response = youtube_auth.rate_song('ZrOKjDZOtkA', 'INDIFFERENT')
self.assertIn('actions', response)
def test_edit_song_library_status(self):
album = youtube_brand.get_album('MPREb_9nqEki4ZDpp')
response = youtube_brand.edit_song_library_status(
album['tracks'][2]['feedbackTokens']['add'])
self.assertTrue(response['feedbackResponses'][0]['isProcessed'])
response = youtube_brand.edit_song_library_status(
album['tracks'][2]['feedbackTokens']['remove'])
self.assertTrue(response['feedbackResponses'][0]['isProcessed'])
def test_rate_playlist(self):
response = youtube_auth.rate_playlist('OLAK5uy_l3g4WcHZsEx_QuEDZzWEiyFzZl6pL0xZ4', 'LIKE')
self.assertIn('actions', response)