Remove dead Last.fm tag.getSimilar

This commit is contained in:
hugovk 2017-10-20 00:32:40 +03:00
parent c0a25fbabe
commit 00b6c0a619
2 changed files with 0 additions and 28 deletions

View file

@ -1904,18 +1904,6 @@ class Tag(_BaseObject, _Chartable):
return self.name
def get_similar(self):
"""Returns the tags similar to this one, ordered by similarity. """
doc = self._request(self.ws_prefix + '.getSimilar', True)
seq = []
names = _extract_all(doc, 'name')
for name in names:
seq.append(Tag(name, self.network))
return seq
def get_top_albums(self, limit=None, cacheable=True):
"""Returns a list of the top albums."""
params = self._get_params()

View file

@ -58,22 +58,6 @@ class TestPyLastTag(PyLastTestCase):
self.assertTrue(tag1 != tag2)
self.assertEqual(url, "https://www.last.fm/tag/blues")
def test_tags_similar(self):
# Arrange
tag = self.network.get_tag("blues")
# Act
similar = tag.get_similar()
# Assert
self.skip_if_lastfm_api_broken(similar)
found = False
for tag in similar:
if tag.name == "delta blues":
found = True
break
self.assertTrue(found)
if __name__ == '__main__':
unittest.main(failfast=True)