From 79442f7a016c21e2dae08a065facb530a747a3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 30 Nov 2025 12:51:23 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Rename=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dency_scopes.py => test_security_scopes_dont_bleed.py} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename tests/{test_dependency_scopes.py => test_security_scopes_dont_bleed.py} (87%) diff --git a/tests/test_dependency_scopes.py b/tests/test_security_scopes_dont_bleed.py similarity index 87% rename from tests/test_dependency_scopes.py rename to tests/test_security_scopes_dont_bleed.py index 10e5859cc..3f1a4c3d9 100644 --- a/tests/test_dependency_scopes.py +++ b/tests/test_security_scopes_dont_bleed.py @@ -26,8 +26,8 @@ async def dep3( app = FastAPI() -@app.get("/recursive_scopes") -def recursive_scopes( +@app.get("/scopes") +def get_scopes( dep3: Annotated[Dict[str, Any], Security(dep3, scopes=["scope3"])], ): return dep3 @@ -36,8 +36,8 @@ def recursive_scopes( client = TestClient(app) -def test_recursive_scopes(): - response = client.get("recursive_scopes") +def test_security_scopes_dont_bleed(): + response = client.get("/scopes") assert response.status_code == 200 assert response.json() == { "dep1": ["scope3", "scope1"],