From b55b40c3fe720a30887542838261eb2c1e241b5b Mon Sep 17 00:00:00 2001 From: hugovk Date: Fri, 20 Oct 2017 00:45:17 +0300 Subject: [PATCH] Remove dead Last.fm album/track get ID --- pylast/__init__.py | 6 ------ tests/test_pylast_user.py | 13 ------------- 2 files changed, 19 deletions(-) diff --git a/pylast/__init__.py b/pylast/__init__.py index f7d99dc..df23ad6 100644 --- a/pylast/__init__.py +++ b/pylast/__init__.py @@ -1429,12 +1429,6 @@ class _Opus(_BaseObject, _Taggable): return self.get_title(properly_capitalized) - def get_id(self): - """Returns the ID on the network.""" - - return _extract( - self._request(self.ws_prefix + ".getInfo", cacheable=True), "id") - def get_playcount(self): """Returns the number of plays on the network""" diff --git a/tests/test_pylast_user.py b/tests/test_pylast_user.py index 3cc9969..53bb1fc 100755 --- a/tests/test_pylast_user.py +++ b/tests/test_pylast_user.py @@ -5,8 +5,6 @@ Integration (not unit) tests for pylast.py import os import unittest -import pytest - import pylast from .test_pylast import PyLastTestCase @@ -393,17 +391,6 @@ class TestPyLastUser(PyLastTestCase): # Assert self.assertNotEqual(track1, track2) - def test_track_id(self): - # Arrange - track = pylast.Track("Test Artist", "test title", self.network) - - # Act - id = track.get_id() - - # Assert - self.skip_if_lastfm_api_broken(id) - self.assertEqual(id, "14053327") - def test_track_title_prop_caps(self): # Arrange track = pylast.Track("test artist", "test title", self.network)