From 61ca92aba2db5ff490242d9ced2c30b694c50303 Mon Sep 17 00:00:00 2001 From: jesus Date: Tue, 8 Sep 2026 23:06:10 +0000 Subject: [PATCH] test(proxy): suppress module-global patch findings in ui_view_users search test Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../management_endpoints/test_internal_user_endpoints.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py b/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py index 78d869bc3c6..8cff00f1a8d 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py +++ b/tests/test_litellm/proxy/management_endpoints/test_internal_user_endpoints.py @@ -129,11 +129,13 @@ async def test_ui_view_users_search_matches_user_id_or_email(mocker): mock_prisma_client.db.litellm_usertable.find_many = mock_find_many # Flag OFF by default - mocker.patch( + mocker.patch( # test-quality-ok: endpoint reads settings via module global; same seam as sibling tests "litellm.proxy.ui_crud_endpoints.proxy_setting_endpoints.get_ui_settings_cached", return_value={}, ) - mocker.patch("litellm.proxy.proxy_server.prisma_client", mock_prisma_client) + mocker.patch( # test-quality-ok: endpoint reads prisma_client via module global; same seam as sibling tests + "litellm.proxy.proxy_server.prisma_client", mock_prisma_client + ) await ui_view_users( user_api_key_dict=UserAPIKeyAuth(