Add a delay to allow Last.fm to update unloves

This commit is contained in:
Hugo 2019-02-03 13:55:54 +02:00
parent d7750d8131
commit 7f207c50da

View file

@ -2,6 +2,7 @@
"""
Integration (not unit) tests for pylast.py
"""
import time
import unittest
import pylast
@ -20,6 +21,7 @@ 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)