Skip to content

Commit 92a37e4

Browse files
committed
fix datetime comparison
1 parent 218ab40 commit 92a37e4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,12 @@ def test_get_events_timestamps(newer_than, older_than):
292292

293293
for item in res:
294294
assert (newer_than is None) or (
295-
datetime.fromisoformat(item.get("createdAt")
296-
> datetime.fromisoformat(newer_than))
295+
datetime.fromisoformat(item.get("createdAt"))
296+
> datetime.fromisoformat(newer_than)
297297
)
298298
assert (older_than is None) or (
299-
datetime.fromisoformat(item.get("createdAt")
300-
< datetime.fromisoformat(older_than))
299+
datetime.fromisoformat(item.get("createdAt"))
300+
< datetime.fromisoformat(older_than)
301301
)
302302

303303

0 commit comments

Comments
 (0)