Skip to content

Commit

Permalink
Adjust time data for UTC timezone.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Mar 7, 2024
1 parent ffa99c6 commit 6328790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 6328790

Please sign in to comment.