Skip to content

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]

async def test_auth_callback_new_user(mock_google_sso, mock_env_vars, prisma_client):

Ishaan Jaffer5b23b0913ed7
diff --git a/tests/proxy_admin_ui_tests/test_sso_sign_in.py b/tests/proxy_admin_ui_tests/test_sso_sign_in.py
index 83bddf5b8b2..7eeeb9f4bec 100644
--- a/tests/proxy_admin_ui_tests/test_sso_sign_in.py
+++ b/tests/proxy_admin_ui_tests/test_sso_sign_in.py
@@ -82,6 +82,7 @@ async def test_auth_callback_new_user(mock_google_sso, mock_env_vars, prisma_cli
mock_sso_result.email = unique_user_email
mock_sso_result.id = unique_user_id
mock_sso_result.provider = "google"
+ mock_sso_result.user_role = None # Explicitly set to None so it doesn't return a MagicMock
mock_google_sso.return_value.verify_and_process = AsyncMock(
return_value=mock_sso_result
)