From 07d6d75abe82a5d6e8979aed23f46c991bc95303 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 22 Dec 2024 18:49:20 +0100 Subject: [PATCH] chore: remove deprecation warning in IO tests --- test/io/test_io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/io/test_io.py b/test/io/test_io.py index 75c2ad8617..e61e074cbc 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -216,7 +216,7 @@ def test_iat_claim(defaultenv): env = {**defaultenv, "PGRST_JWT_SECRET": SECRET} - claim = {"role": "postgrest_test_author", "iat": datetime.utcnow()} + claim = {"role": "postgrest_test_author", "iat": datetime.now(timezone.utc)} headers = jwtauthheader(claim, SECRET) with run(env=env) as postgrest: