user.getArtistTracks has now been removed from Last.fm and returns an error
This commit is contained in:
parent
dedcbf00f5
commit
44d0c2c966
3 changed files with 12 additions and 18 deletions
|
@ -3,9 +3,6 @@
|
|||
Integration (not unit) tests for pylast.py
|
||||
"""
|
||||
import unittest
|
||||
import warnings
|
||||
|
||||
import pytest
|
||||
|
||||
import pylast
|
||||
|
||||
|
@ -42,19 +39,6 @@ class TestPyLastAlbum(TestPyLastWithLastFm):
|
|||
# Assert
|
||||
self.assertTrue(hasattr(track, "album"))
|
||||
|
||||
@pytest.mark.skip(reason="Last.fm is removing from API")
|
||||
def test_album_in_artist_tracks(self):
|
||||
# Arrange
|
||||
lastfm_user = self.network.get_user(self.username)
|
||||
|
||||
# Act
|
||||
with warnings.catch_warnings():
|
||||
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
||||
track = lastfm_user.get_artist_tracks(artist="Test Artist")[0]
|
||||
|
||||
# Assert
|
||||
self.assertTrue(hasattr(track, "album"))
|
||||
|
||||
def test_album_wiki_content(self):
|
||||
# Arrange
|
||||
album = pylast.Album("Test Artist", "Test Album", self.network)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue