Add a delay to allow Last.fm to update unloves

This commit is contained in:
Hugo 2019-02-03 14:39:21 +02:00
parent d9c086f8cb
commit b41c5bc85a

View file

@ -20,7 +20,6 @@ class TestPyLastTrack(TestPyLastWithLastFm):
# Act
track.love()
time.sleep(1) # Delay, for Last.fm latency. TODO Can this be removed later?
# Assert
loved = lastfm_user.get_loved_tracks(limit=1)
@ -38,6 +37,7 @@ class TestPyLastTrack(TestPyLastWithLastFm):
# Act
track.unlove()
time.sleep(1) # Delay, for Last.fm latency. TODO Can this be removed later?
# Assert
loved = lastfm_user.get_loved_tracks(limit=1)