1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-12-04 14:46:33 -05:00

Fix deprecation warning

This commit is contained in:
Ivan Habunek 2024-11-27 19:45:31 +01:00
parent 6be6ba4fb2
commit 39ff728119
No known key found for this signature in database
GPG Key ID: 01DB3DD0D824504C

View File

@ -101,7 +101,7 @@ def test_post_scheduled_in(app, user, run):
result = run(cli.post.post, text, "--scheduled-in", scheduled_in) result = run(cli.post.post, text, "--scheduled-in", scheduled_in)
assert_ok(result) assert_ok(result)
dttm = datetime.utcnow() + delta dttm = datetime.now(timezone.utc) + delta
assert result.stdout.startswith(f"Toot scheduled for: {str(dttm)[:16]}") assert result.stdout.startswith(f"Toot scheduled for: {str(dttm)[:16]}")
datetimes.append(dttm) datetimes.append(dttm)