style(mcp): format the caller sign-in subject parametrization

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
yucheng 2026-10-03 13:24:22 +00:00
parent ea7666685f
commit e3a56fab9b

View file

@ -6983,7 +6983,11 @@ class TestMCPServerManager:
("raw_headers", "api_key", "custom_auth", "expected_subject"),
[
pytest.param(
{"authorization": "Bearer eyJ.x.y"}, "eyJ.x.y", True, "eyJ.x.y", id="custom-auth-idp-bearer-is-the-subject"
{"authorization": "Bearer eyJ.x.y"},
"eyJ.x.y",
True,
"eyJ.x.y",
id="custom-auth-idp-bearer-is-the-subject",
),
pytest.param(
{"authorization": "Bearer eyJ.x.y"},
@ -6992,9 +6996,7 @@ class TestMCPServerManager:
"eyJ.x.y",
id="built-in-oauth2-admission-bearer-is-the-subject",
),
pytest.param(
{"authorization": "Bearer sk-1234"}, "sk-1234", True, None, id="virtual-key-is-not-a-subject"
),
pytest.param({"authorization": "Bearer sk-1234"}, "sk-1234", True, None, id="virtual-key-is-not-a-subject"),
pytest.param(
{"x-litellm-api-key": "ca-key", "authorization": "Bearer ca-key"},
"ca-key",