Aside: make test_album_tags_are_topitems more reliable

This commit is contained in:
Hugo 2019-02-27 17:19:20 +02:00
parent 65e182c5dd
commit dc464788f2

View file

@ -13,10 +13,10 @@ from .test_pylast import TestPyLastWithLastFm
class TestPyLastAlbum(TestPyLastWithLastFm):
def test_album_tags_are_topitems(self):
# Arrange
albums = self.network.get_user("RJ").get_top_albums()
album = self.network.get_album("Test Artist", "Test Album")
# Act
tags = albums[0].item.get_top_tags(limit=1)
tags = album.get_top_tags(limit=1)
# Assert
self.assertGreater(len(tags), 0)