From 028eadc312eb685af823d6af48759ec1fa4e6d3b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 17:17:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_httpbasic_realm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_httpbasic_realm.py b/tests/test_httpbasic_realm.py index b9fc5e556..befc05939 100644 --- a/tests/test_httpbasic_realm.py +++ b/tests/test_httpbasic_realm.py @@ -2,6 +2,7 @@ from fastapi import Depends, FastAPI from fastapi.security import HTTPBasic from fastapi.testclient import TestClient + def test_default_realm_is_included(): app = FastAPI() security = HTTPBasic() @@ -15,6 +16,7 @@ def test_default_realm_is_included(): assert response.status_code == 401 assert response.headers["www-authenticate"] == 'Basic realm="fastapi"' + def test_custom_realm_is_respected(): app = FastAPI() security = HTTPBasic(realm="custom")