Skip to content

Commit e76f8e5

Browse files
committed
Update the offset datetime test case for unions
1 parent 4df4518 commit e76f8e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/cocoindex/tests/test_convert.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,10 +510,10 @@ def test_roundtrip_union_with_inactive_uuid() -> None:
510510
validate_full_roundtrip(value, t)
511511

512512

513-
#def test_roundtrip_union_datetime() -> None:
514-
# t = str | uuid.UUID | float | int | datetime.datetime
515-
# value = datetime.datetime.now()
516-
# validate_full_roundtrip(value, t)
513+
def test_roundtrip_union_offset_datetime() -> None:
514+
t = str | uuid.UUID | float | int | datetime.datetime
515+
value = datetime.datetime.now(datetime.UTC)
516+
validate_full_roundtrip(value, t)
517517

518518

519519
def test_roundtrip_union_date() -> None:

0 commit comments

Comments
 (0)