Skip to content

Commit 07d6d75

Browse files
chore: remove deprecation warning in IO tests
1 parent f5f64ac commit 07d6d75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/io/test_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_iat_claim(defaultenv):
216216

217217
env = {**defaultenv, "PGRST_JWT_SECRET": SECRET}
218218

219-
claim = {"role": "postgrest_test_author", "iat": datetime.utcnow()}
219+
claim = {"role": "postgrest_test_author", "iat": datetime.now(timezone.utc)}
220220
headers = jwtauthheader(claim, SECRET)
221221

222222
with run(env=env) as postgrest:

0 commit comments

Comments
 (0)