From f32848160cc87513b6f80fd7e3cd79fba1183b01 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 10 Feb 2019 11:58:40 +0200 Subject: [PATCH] Make test more reliable: check a static album not a dynamic one which may not have any tags --- 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 a2836fd..2a26849 100755 --- a/tests/test_album.py +++ b/tests/test_album.py @@ -12,10 +12,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)