Remove deprecated is_streamable and is_fulltrack_available

This commit is contained in:
Hugo van Kemenade 2022-01-31 12:56:38 +02:00
parent 7f4bea6f07
commit bb05699252
3 changed files with 0 additions and 68 deletions

View file

@ -229,8 +229,6 @@ class TestPyLastArtist(TestPyLastWithLastFm):
mbid = artist1.get_mbid()
playcount = artist1.get_playcount()
with pytest.warns(DeprecationWarning):
streamable = artist1.is_streamable()
name = artist1.get_name(properly_capitalized=False)
name_cap = artist1.get_name(properly_capitalized=True)
@ -240,7 +238,6 @@ class TestPyLastArtist(TestPyLastWithLastFm):
assert name.lower() == name_cap.lower()
assert url == "https://www.last.fm/music/radiohead"
assert mbid == "a74b1b7f-71a5-4011-9441-d0b5e4122711"
assert isinstance(streamable, bool)
def test_artist_eq_none_is_false(self):
# Arrange

View file

@ -118,28 +118,6 @@ class TestPyLastTrack(TestPyLastWithLastFm):
# Assert
assert duration >= 200000
def test_track_is_streamable(self):
# Arrange
track = pylast.Track("Nirvana", "Lithium", self.network)
# Act
with pytest.warns(DeprecationWarning):
streamable = track.is_streamable()
# Assert
assert not streamable
def test_track_is_fulltrack_available(self):
# Arrange
track = pylast.Track("Nirvana", "Lithium", self.network)
# Act
with pytest.warns(DeprecationWarning):
fulltrack_available = track.is_fulltrack_available()
# Assert
assert not fulltrack_available
def test_track_get_album(self):
# Arrange
track = pylast.Track("Nirvana", "Lithium", self.network)