From 7f207c50da4bea73831f3be25cd48bc85c5eeea9 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 3 Feb 2019 13:55:54 +0200 Subject: [PATCH] Add a delay to allow Last.fm to update unloves --- tests/test_track.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_track.py b/tests/test_track.py index bce28db..f0d0620 100755 --- a/tests/test_track.py +++ b/tests/test_track.py @@ -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)