The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
test fix: MicrosoftSSOHandler
Ishaan Jaffera163bf9f5112
diff --git a/tests/test_litellm/proxy/management_endpoints/test_ui_sso.py b/tests/test_litellm/proxy/management_endpoints/test_ui_sso.pyindex bfd5358dba6..941517db120 100644--- a/tests/test_litellm/proxy/management_endpoints/test_ui_sso.py+++ b/tests/test_litellm/proxy/management_endpoints/test_ui_sso.py@@ -2,7 +2,6 @@ import asyncioimport jsonimport osimport sys-from litellm._uuid import uuidfrom typing import Optional, castfrom unittest.mock import AsyncMock, MagicMock, patch@@ -10,6 +9,8 @@ import pytestfrom fastapi import Requestfrom fastapi.testclient import TestClient+from litellm._uuid import uuid+sys.path.insert(0, os.path.abspath("../../../")) # Adds the parent directory to the system path@@ -46,7 +47,7 @@ def test_microsoft_sso_handler_openid_from_response_user_principal_name():# Act# Call the method being testedresult = MicrosoftSSOHandler.openid_from_response(- response=mock_response, team_ids=expected_team_ids+ response=mock_response, team_ids=expected_team_ids, user_role=None)# Assert@@ -77,7 +78,7 @@ def test_microsoft_sso_handler_openid_from_response():# Act# Call the method being testedresult = MicrosoftSSOHandler.openid_from_response(- response=mock_response, team_ids=expected_team_ids+ response=mock_response, team_ids=expected_team_ids, user_role=None)# Assert@@ -98,7 +99,7 @@ def test_microsoft_sso_handler_with_empty_response():# Test with None response# Act- result = MicrosoftSSOHandler.openid_from_response(response=None, team_ids=[])+ result = MicrosoftSSOHandler.openid_from_response(response=None, team_ids=[], user_role=None)# Assertassert isinstance(result, CustomOpenID)