Jelajahi Sumber

[scrobblers] Fixes test with wiggly second

Colin Powell 1 bulan lalu
induk
melakukan
0bb874f1db
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      tests/scrobbles_tests/test_views.py

+ 4 - 2
tests/scrobbles_tests/test_views.py

@@ -111,7 +111,9 @@ def test_scrobble_mopidy_same_track_different_album(
     assert scrobble.media_obj.title == "Same in the End"
 
 
-@pytest.mark.skip("Need to add a mock podcast request data, tho Google Podcasts is gone :thinking:")
+@pytest.mark.skip(
+    "Need to add a mock podcast request data, tho Google Podcasts is gone :thinking:"
+)
 @pytest.mark.django_db
 def test_scrobble_mopidy_podcast(
     client, mopidy_podcast_request_data, valid_auth_token
@@ -193,7 +195,7 @@ def test_scrobble_jellyfin_track(
         assert scrobble.media_obj.__class__ == Track
         assert scrobble.media_obj.title == "Emotion"
 
-    with time_machine.travel(datetime(2024, 1, 14, 12, 1, 1)):
+    with time_machine.travel(datetime(2024, 1, 14, 12, 1, 4)):
         jellyfin_track.request_data["UtcTimestamp"] = timezone.now().strftime(
             "%Y-%m-%d %H:%M:%S"
         )