Add a delay to allow Last.fm to update unloves
This commit is contained in:
parent
d7750d8131
commit
7f207c50da
|
@ -2,6 +2,7 @@
|
||||||
"""
|
"""
|
||||||
Integration (not unit) tests for pylast.py
|
Integration (not unit) tests for pylast.py
|
||||||
"""
|
"""
|
||||||
|
import time
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import pylast
|
import pylast
|
||||||
|
@ -20,6 +21,7 @@ class TestPyLastTrack(TestPyLastWithLastFm):
|
||||||
|
|
||||||
# Act
|
# Act
|
||||||
track.love()
|
track.love()
|
||||||
|
time.sleep(1) # Delay, for Last.fm latency. TODO Can this be removed later?
|
||||||
|
|
||||||
# Assert
|
# Assert
|
||||||
loved = lastfm_user.get_loved_tracks(limit=1)
|
loved = lastfm_user.get_loved_tracks(limit=1)
|
||||||
|
|
Loading…
Reference in a new issue