0
0
mirror of https://github.com/ihabunek/toot.git synced 2025-06-30 22:18:36 -04:00

Fix tests

This commit is contained in:
Ivan Habunek 2025-01-16 14:38:42 +01:00
parent 32a509df93
commit 89035accc3
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -111,7 +111,7 @@ def test_post_scheduled_in(app, user, run):
assert len(scheduled) == 8
for expected, status in zip(datetimes, scheduled):
actual = datetime.strptime(status["scheduled_at"], "%Y-%m-%dT%H:%M:%S.%fZ")
actual = datetime.strptime(status["scheduled_at"], "%Y-%m-%dT%H:%M:%S.%fZ").replace(tzinfo=timezone.utc)
delta = expected - actual
assert delta.total_seconds() < 5