mirror of
https://github.com/ihabunek/toot
synced 2024-12-22 07:01:46 +01:00
Fix deprecation warning
This commit is contained in:
parent
6be6ba4fb2
commit
39ff728119
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user