Skip to content

Commit 2cd05ff

Browse files
committed
unit test
1 parent 979beb4 commit 2cd05ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

api/tests/unittest/models/test_gtfs_feed_impl.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import copy
22
import unittest
3-
from datetime import datetime, date
3+
from datetime import datetime
4+
from zoneinfo import ZoneInfo
45

56
from geoalchemy2 import WKTElement
67

@@ -87,8 +88,9 @@ def create_test_notice(notice_code: str, total_notices: int, severity: str):
8788
note="note",
8889
downloaded_at=datetime(year=2022, month=12, day=31, hour=13, minute=45, second=56),
8990
hash="hash",
90-
service_date_range_start=date(2024, 1, 1),
91-
service_date_range_end=date(2025, 1, 1),
91+
service_date_range_start=datetime(2024, 1, 1, 0, 0, 0, tzinfo=ZoneInfo("Canada/Atlantic")),
92+
service_date_range_end=datetime(2025, 1, 1, 0, 0, 0, tzinfo=ZoneInfo("Canada/Atlantic")),
93+
agency_timezone="Canada/Atlantic",
9294
bounding_box=WKTElement(POLYGON, srid=4326),
9395
latest=True,
9496
validation_reports=[

0 commit comments

Comments
 (0)