Remove dead Last.fm attributes: releasedate in album.getInfo
This commit is contained in:
parent
0d4f674ac7
commit
c303fd0139
|
@ -1718,12 +1718,6 @@ class Album(_Opus):
|
|||
def __init__(self, artist, title, network, username=None):
|
||||
super(Album, self).__init__(artist, title, network, "album", username)
|
||||
|
||||
def get_release_date(self):
|
||||
"""Returns the release date of the album."""
|
||||
|
||||
return _extract(self._request(
|
||||
self.ws_prefix + ".getInfo", cacheable=True), "releasedate")
|
||||
|
||||
def get_cover_image(self, size=COVER_EXTRA_LARGE):
|
||||
"""
|
||||
Returns a uri to the cover image
|
||||
|
|
|
@ -1879,18 +1879,6 @@ class TestPyLast(unittest.TestCase):
|
|||
# Assert
|
||||
self.assertGreater(count, 21)
|
||||
|
||||
@handle_lastfm_exceptions
|
||||
def test_album_rel_date(self):
|
||||
# Arrange
|
||||
album = pylast.Album("Test Artist", "Test Release", self.network)
|
||||
|
||||
# Act
|
||||
date = album.get_release_date()
|
||||
|
||||
# Assert
|
||||
self.skip_if_lastfm_api_broken(date)
|
||||
self.assertIn("2011", date)
|
||||
|
||||
@handle_lastfm_exceptions
|
||||
def test_album_tracks(self):
|
||||
# Arrange
|
||||
|
|
Loading…
Reference in a new issue