From 63287902a523bc147f12d4cbf8cc7039773016ba Mon Sep 17 00:00:00 2001 From: Emmie Maeda Date: Thu, 7 Mar 2024 06:30:11 -0500 Subject: [PATCH] Adjust time data for UTC timezone. --- test/test_scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_scraper.py b/test/test_scraper.py index d7e2aa0..66c2629 100644 --- a/test/test_scraper.py +++ b/test/test_scraper.py @@ -94,7 +94,7 @@ def test_date(self): entity = soup.find("span", class_="odate") timestamp = get_entity_date(TEST_SOURCE, entity) - self.assertEqual(timestamp, datetime(2024, 2, 7, 10, 49, 37)) + self.assertEqual(timestamp, datetime(2024, 2, 7, 15, 49, 37)) def test_regular_user(self): entity = self.get_entity( @@ -199,7 +199,7 @@ def test_last_forum_post(self): post = extract_last_forum_post(TEST_SOURCE, entity) self.assertIsNotNone(post) - self.assertEqual(post.posted_time, datetime(2024, 3, 5, 21, 21, 57)) + self.assertEqual(post.posted_time, datetime(2024, 3, 6, 2, 21, 57)) self.assertEqual(post.thread_id, 16102888) self.assertEqual(post.post_id, 6450010)