From 6bfbc7dba4cbf70417ba98d7792bc18005d44486 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 21 Sep 2026 18:53:39 +0000 Subject: [PATCH] test(auth): pass throttle to authenticate_user in reset-required tests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- tests/test_litellm/proxy/auth/test_login_utils.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/proxy/auth/test_login_utils.py b/tests/test_litellm/proxy/auth/test_login_utils.py index d41b90fe566..ada231a3e95 100644 --- a/tests/test_litellm/proxy/auth/test_login_utils.py +++ b/tests/test_litellm/proxy/auth/test_login_utils.py @@ -733,7 +733,12 @@ async def _db_login(throttle, username: str, password: str, *, correct: bool): ), ): return await authenticate_user( - username=username, password=password, master_key="sk-master", prisma_client=MagicMock(), throttle=throttle + username=username, + password=password, + master_key="sk-master", + prisma_client=MagicMock(), + throttle=throttle, + general_settings=_POLICY_NO_BREACH_CHECK, ) @@ -2122,6 +2127,7 @@ class TestPasswordResetRequiredSessionMinting: password="Str0ng!Passw0rd", master_key="sk-1234", prisma_client=mock_prisma_client, + throttle=_unlimited_throttle(), general_settings=_POLICY_NO_BREACH_CHECK, ) return result, mock_generate_key.call_args.kwargs @@ -2163,6 +2169,7 @@ class TestPasswordResetRequiredSessionMinting: password="Str0ng!Passw0rd", master_key="sk-1234", prisma_client=mock_prisma_client, + throttle=_unlimited_throttle(), general_settings=_POLICY_NO_BREACH_CHECK, ) return result, mock_generate_key.call_args.kwargs, mock_screen.call_args.kwargs