Remove dead Last.fm album/track get ID
This commit is contained in:
parent
666181df50
commit
b55b40c3fe
|
@ -1429,12 +1429,6 @@ class _Opus(_BaseObject, _Taggable):
|
||||||
|
|
||||||
return self.get_title(properly_capitalized)
|
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):
|
def get_playcount(self):
|
||||||
"""Returns the number of plays on the network"""
|
"""Returns the number of plays on the network"""
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ Integration (not unit) tests for pylast.py
|
||||||
import os
|
import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import pytest
|
|
||||||
|
|
||||||
import pylast
|
import pylast
|
||||||
|
|
||||||
from .test_pylast import PyLastTestCase
|
from .test_pylast import PyLastTestCase
|
||||||
|
@ -393,17 +391,6 @@ class TestPyLastUser(PyLastTestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertNotEqual(track1, track2)
|
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):
|
def test_track_title_prop_caps(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
track = pylast.Track("test artist", "test title", self.network)
|
track = pylast.Track("test artist", "test title", self.network)
|
||||||
|
|
Loading…
Reference in a new issue