From dc464788f22a3cbf79330c206f6ac6e26700b11b Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 27 Feb 2019 17:19:20 +0200 Subject: [PATCH] Aside: make test_album_tags_are_topitems more reliable --- tests/test_album.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_album.py b/tests/test_album.py index c855d48..2d47720 100755 --- a/tests/test_album.py +++ b/tests/test_album.py @@ -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)