fix(tests): mock native advisor support in interceptor assertions

Made-with: Cursor
This commit is contained in:
Sameer Kankute 2026-04-20 18:57:52 +05:30
parent bfd0b9fa5f
commit 9a6ba75a81
No known key found for this signature in database

View file

@ -79,6 +79,9 @@ def test_can_handle_edge_cases():
with patch(
"litellm.llms.anthropic.experimental_pass_through.messages.interceptors.advisor.resolve_proxy_model_alias_to_litellm_model",
return_value="",
), patch(
"litellm.llms.anthropic.experimental_pass_through.messages.interceptors.advisor.supports_native_advisor_tool",
return_value=True,
):
assert h.can_handle([ADVISOR_TOOL], "openai")
assert h.can_handle([ADVISOR_TOOL], "bedrock")
@ -110,6 +113,9 @@ async def test_anthropic_native_interceptor_skipped():
with patch(
"litellm.llms.anthropic.experimental_pass_through.messages.interceptors.advisor.resolve_proxy_model_alias_to_litellm_model",
return_value="",
), patch(
"litellm.llms.anthropic.experimental_pass_through.messages.interceptors.advisor.supports_native_advisor_tool",
return_value=True,
):
assert not h.can_handle(
[ADVISOR_TOOL], "anthropic"