From 81fdd391c0f8cf63473cec638fbd228280228718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 30 Nov 2025 13:59:25 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Update=20test=20scopes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_security_scopes_sub_dependency.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_security_scopes_sub_dependency.py b/tests/test_security_scopes_sub_dependency.py index 0308f196f..9cc668d8e 100644 --- a/tests/test_security_scopes_sub_dependency.py +++ b/tests/test_security_scopes_sub_dependency.py @@ -59,7 +59,7 @@ def app_fixture(call_counts: Dict[str, int]): @app.get("/") def path_operation( user_me: Annotated[dict, Depends(get_user_me)], - user_items: Annotated[dict, Security(get_user_items, scopes=["not_me"])], + user_items: Annotated[dict, Security(get_user_items, scopes=["items"])], ): return { "user_me": user_me, @@ -99,7 +99,7 @@ def test_security_scopes_sub_dependency_caching( "user_me": "user_me_2", "current_user": { "user": "user_2", - "scopes": ["not_me", "me"], + "scopes": ["items", "me"], "db_session": "db_session_1", }, },