From 2ab497a16a0d75be1282c6776edb98b32706045f Mon Sep 17 00:00:00 2001 From: Isaac Sanders <651597+isaacsanders@users.noreply.github.com> Date: Mon, 19 Jan 2026 12:09:06 -0600 Subject: [PATCH] test: Adds a test to fix #1094 --- backend/download/tests/test_src/test_pending_list.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/download/tests/test_src/test_pending_list.py b/backend/download/tests/test_src/test_pending_list.py index f8656c7c..29b0e4d3 100644 --- a/backend/download/tests/test_src/test_pending_list.py +++ b/backend/download/tests/test_src/test_pending_list.py @@ -5,6 +5,12 @@ from datetime import datetime, timezone from download.src.queue import PendingList +def test_returns_scientific_timestamp_if_present(): + video_data = {"timestamp": 1.5135732E9} + result = PendingList._extract_published(video_data) + assert result == 1513573200 + + def test_returns_timestamp_if_present(): video_data = {"timestamp": 1508457600} result = PendingList._extract_published(video_data)