User.get_now_playing: Add album and cover image to info
This commit is contained in:
parent
898a8b5756
commit
7689a1e95a
2 changed files with 6 additions and 1 deletions
|
@ -47,6 +47,10 @@ class TestPyLastNetwork(TestPyLastWithLastFm):
|
|||
self.assertIsNotNone(current_track)
|
||||
self.assertEqual(str(current_track.title).lower(), "test title")
|
||||
self.assertEqual(str(current_track.artist).lower(), "test artist")
|
||||
self.assertEqual(current_track.info["album"], "Test Album")
|
||||
|
||||
self.assertTrue(len(current_track.info["image"]))
|
||||
self.assertRegex(current_track.info["image"][pylast.SIZE_LARGE], r"^http.+$")
|
||||
|
||||
def test_enable_rate_limiting(self):
|
||||
# Arrange
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue