From 39ff728119040163849e7b2a45506292a5887db9 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Wed, 27 Nov 2024 19:45:31 +0100 Subject: [PATCH] Fix deprecation warning --- tests/integration/test_post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/test_post.py b/tests/integration/test_post.py index 86f6931..26df850 100644 --- a/tests/integration/test_post.py +++ b/tests/integration/test_post.py @@ -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)