From 8faf9c051908824cb949fd4f0159099af0760009 Mon Sep 17 00:00:00 2001 From: Taimoor Zaeem Date: Fri, 17 Jul 2026 16:57:53 +0500 Subject: [PATCH] test: resolve pytest warning when running io tests When running `postgrest-test-io`, pytest raises a `InsecureKeyLengthWarning` for a test. To clear that warning, this commit increases the key length to more than 32 characters. Signed-off-by: Taimoor Zaeem --- test/io/test_io.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/io/test_io.py b/test/io/test_io.py index 7df1375a1..cdaf8cfa7 100644 --- a/test/io/test_io.py +++ b/test/io/test_io.py @@ -1035,7 +1035,8 @@ def test_no_pool_connection_required_on_bad_jwt_claim(defaultenv): with run(env=env, no_pool_connection_available=True) as postgrest: # A JWT with an invalid signature shouldn't open a connection - headers = jwtauthheader({"role": "postgrest_test_author"}, "Wrong Secret") + wrong_secret = "This is the most wrong secret of all secrets" + headers = jwtauthheader({"role": "postgrest_test_author"}, wrong_secret) response = postgrest.session.get("/projects", headers=headers) assert response.status_code == 401