Skip to content

Commit

Permalink
Update test_attributes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencpope authored Sep 18, 2024
1 parent 81afb6c commit f60529f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion descarteslabs/core/common/client/tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class TzTest(Document):
print(f"doc.date {type(doc.date)} {doc.date}")
print(f"doc.date.tzinfo {type(doc.date.tzinfo)} {doc.date.tzinfo}")
print(f"pytz.timezone(MST) {type(pytz.timezone('MST'))} {pytz.timezone('MST')}")
assert doc.date.tzinfo == pytz.timezone("MST")
assert doc.date.tzinfo is pytz.timezone("MST")
assert doc.date.astimezone(tz=timezone.utc) == now.replace(tzinfo=timezone.utc)

assert doc.to_dict()["date"] == now.replace(tzinfo=timezone.utc).isoformat()
Expand Down

0 comments on commit f60529f

Please sign in to comment.