From c0ac78870933a46d245f3e063c96b7de4f844c42 Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Wed, 4 Mar 2026 11:29:51 -0300 Subject: [PATCH] Fix responses ID security test for new request_cache parameter The _encrypt_response_id method now receives request_cache=None as a keyword argument from async_post_call_success_hook. Updated the mock assertion to expect this parameter. Co-Authored-By: Claude Opus 4.6 --- tests/test_litellm/test_responses_id_security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_litellm/test_responses_id_security.py b/tests/test_litellm/test_responses_id_security.py index 56822882bf..c4e2bc38cc 100644 --- a/tests/test_litellm/test_responses_id_security.py +++ b/tests/test_litellm/test_responses_id_security.py @@ -545,7 +545,7 @@ class TestAsyncPostCallSuccessHook: response=mock_response, ) - mock_encrypt.assert_called_once_with(mock_response, mock_user_api_key_dict) + mock_encrypt.assert_called_once_with(mock_response, mock_user_api_key_dict, request_cache=None) assert result == mock_response @pytest.mark.asyncio