From f7d88c09e59a6e921681b3a3f83a2b1c7a9e4275 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Mon, 24 Nov 2025 16:55:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Update=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_security_api_key_cookie.py | 2 +- tests/test_security_api_key_cookie_description.py | 2 +- tests/test_security_api_key_header.py | 2 +- tests/test_security_api_key_header_description.py | 2 +- tests/test_security_api_key_query.py | 2 +- tests/test_security_api_key_query_description.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_security_api_key_cookie.py b/tests/test_security_api_key_cookie.py index 488503817..9bacfc56e 100644 --- a/tests/test_security_api_key_cookie.py +++ b/tests/test_security_api_key_cookie.py @@ -34,7 +34,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="cookie", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): diff --git a/tests/test_security_api_key_cookie_description.py b/tests/test_security_api_key_cookie_description.py index e0e448471..d0cab324e 100644 --- a/tests/test_security_api_key_cookie_description.py +++ b/tests/test_security_api_key_cookie_description.py @@ -34,7 +34,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="cookie", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): diff --git a/tests/test_security_api_key_header.py b/tests/test_security_api_key_header.py index b72d258c4..3e761b150 100644 --- a/tests/test_security_api_key_header.py +++ b/tests/test_security_api_key_header.py @@ -35,7 +35,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="header", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): diff --git a/tests/test_security_api_key_header_description.py b/tests/test_security_api_key_header_description.py index 70b85af03..38a1a8881 100644 --- a/tests/test_security_api_key_header_description.py +++ b/tests/test_security_api_key_header_description.py @@ -35,7 +35,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="header", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): diff --git a/tests/test_security_api_key_query.py b/tests/test_security_api_key_query.py index 7a01101c4..11ed19468 100644 --- a/tests/test_security_api_key_query.py +++ b/tests/test_security_api_key_query.py @@ -35,7 +35,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="query", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema(): diff --git a/tests/test_security_api_key_query_description.py b/tests/test_security_api_key_query_description.py index 45102eb17..658798326 100644 --- a/tests/test_security_api_key_query_description.py +++ b/tests/test_security_api_key_query_description.py @@ -35,7 +35,7 @@ def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"} - assert response.headers["WWW-Authenticate"] == 'ApiKey in="query", name="key"' + assert response.headers["WWW-Authenticate"] == "APIKey" def test_openapi_schema():