Skip to content

Commit 4836cb3

Browse files
committed
Fix test expectation
Changed the error message, needed updating in the test.
1 parent 8957f49 commit 4836cb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: listenbrainz/tests/integration/test_playlist_api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,8 @@ def test_playlist_export(self, mock_requests, mock_export_to_apple_music, mock_e
11561156
headers={"Authorization": "Token {}".format(self.user["auth_token"])}
11571157
)
11581158
self.assert400(response)
1159-
self.assertEqual(response.json["error"], "Service lastfm is not supported. We currently only support 'spotify' and 'apple_music'.")
1159+
self.assertEqual(
1160+
response.json["error"], "Service lastfm is not supported. Supported services are: 'spotify', 'apple_music', 'soundcloud'.")
11601161

11611162
response = self.client.post(
11621163
self.custom_url_for("playlist_api_v1.export_playlist", playlist_mbid=playlist_mbid, service="spotify"),

0 commit comments

Comments
 (0)