From ed40578b5c1eccf4cd94fbefce511f09b99fbcec Mon Sep 17 00:00:00 2001 From: Stephane Bruckert Date: Fri, 31 May 2024 17:23:06 +0100 Subject: [PATCH] flake8 --- tests/integration/user_endpoints/test.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/integration/user_endpoints/test.py b/tests/integration/user_endpoints/test.py index 71234cd7..fb1fbb21 100644 --- a/tests/integration/user_endpoints/test.py +++ b/tests/integration/user_endpoints/test.py @@ -565,37 +565,37 @@ class SpotifyQueueApiTests(unittest.TestCase): @classmethod def setUp(self): self.spotify = Spotify(auth="test_token") - + def test_get_queue(self, mock_get): # Mock the response from _get mock_get.return_value = {'songs': ['song1', 'song2']} - + # Call the queue function response = self.spotify.queue() - + # Check if the correct endpoint is called mock_get.assert_called_with("me/player/queue") - + # Check if the response is as expected self.assertEqual(response, {'songs': ['song1', 'song2']}) - + def test_add_to_queue(self, mock_post): test_uri = 'spotify:track:123' - + # Call the add_to_queue function self.spotify.add_to_queue(test_uri) - + # Check if the correct endpoint is called endpoint = "me/player/queue?uri=%s" % test_uri mock_post.assert_called_with(endpoint) - + def test_add_to_queue_with_device_id(self, mock_post): test_uri = 'spotify:track:123' device_id = 'device123' - + # Call the add_to_queue function with a device_id self.spotify.add_to_queue(test_uri, device_id=device_id) - + # Check if the correct endpoint is called endpoint = "me/player/queue?uri=%s&device_id=%s" % (test_uri, device_id) mock_post.assert_called_with(endpoint)