Skip to content

Commit

Permalink
Fix test logic for datetime (#2900)
Browse files Browse the repository at this point in the history
* Fix test logic for datetime formatting

* Run black
  • Loading branch information
ageorgou committed Aug 31, 2024
1 parent 2f2cf94 commit 0a0d4b6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_literal/test_datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ def test_timezone_z(self):
)

assert isinstance(l.toPython(), datetime)
assert datetime_isoformat(
l.toPython() == DATE_EXT_COMPLETE + "T" + "%H:%M:%S.%f" + TZ_EXT, dt
assert (
datetime_isoformat(
l.toPython(), DATE_EXT_COMPLETE + "T" + "%H:%M:%S.%f" + TZ_EXT
)
== dt
)
assert l.toPython().isoformat() == "2008-12-01T18:02:00.522630+00:00"

Expand Down

0 comments on commit 0a0d4b6

Please sign in to comment.