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 f60529f commit 89e4cd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions descarteslabs/core/common/client/tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class TzTest(Document):
doc = TzTest(date=now.isoformat())
print(f"doc {type(doc)} {doc}")
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')}")
print(f"doc.date.tzinfo {type(doc.date.tzinfo)} {id(doc.date.tzinfo)} {repr(doc.date.tzinfo)}")
print(f"pytz.timezone(MST) {type(pytz.timezone('MST'))} {id(pytz.timezone('MST'))} {repr(pytz.timezone('MST'))}")
assert doc.date.tzinfo is pytz.timezone("MST")
assert doc.date.astimezone(tz=timezone.utc) == now.replace(tzinfo=timezone.utc)

Expand Down

0 comments on commit 89e4cd6

Please sign in to comment.