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:
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)
|
||||
assert_ok(result)
|
||||
|
||||
dttm = datetime.utcnow() + delta
|
||||
dttm = datetime.now(timezone.utc) + delta
|
||||
assert result.stdout.startswith(f"Toot scheduled for: {str(dttm)[:16]}")
|
||||
datetimes.append(dttm)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user