Skip to content

Commit 07ddecc

Browse files
committed
Extend tests
1 parent cd92243 commit 07ddecc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_frame.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def test_create_frame_happy_path(self):
1515
# ISO timestamp must end with timezone info
1616
self.assertTrue(frame['dt'].endswith("+00:00"))
1717

18+
# Sent date matches log record date
19+
date_ref = datetime.utcfromtimestamp(log_record.created)
20+
date_sent = datetime.fromisoformat(frame['dt'])
21+
self.assertEqual(date_ref, date_sent)
22+
1823
def test_create_frame_with_extra(self):
1924
handler = LogtailHandler(source_token="some-source-token")
2025

0 commit comments

Comments
 (0)