Update libre.fm test
This commit is contained in:
parent
571edf23d9
commit
76d85f4c19
|
@ -2174,11 +2174,11 @@ class TestPyLastWithLibreFm(unittest.TestCase):
|
|||
# Act
|
||||
network = pylast.LibreFMNetwork(
|
||||
password_hash=password_hash, username=username)
|
||||
tags = network.get_top_tags(limit=1)
|
||||
artist = network.get_artist("Radiohead")
|
||||
name = artist.get_name()
|
||||
|
||||
# Assert
|
||||
self.assertGreater(len(tags), 0)
|
||||
self.assertIsInstance(tags[0], pylast.TopItem)
|
||||
self.assertEqual(name, "Radiohead")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in a new issue