test(anthropic-messages): name the parallel_tool_calls cases with ids instead of comments

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
mateo 2026-10-31 23:20:14 +00:00
parent a465382ac6
commit 34353d15d4
2 changed files with 10 additions and 3 deletions

View file

@ -5537,11 +5537,18 @@ async def test_chat_bridge_tool_result_text_block_without_text_reaches_the_model
({"type": "auto", "disable_parallel_tool_use": True}, "openai/gpt-oss-120b", "groq", False),
({"type": "auto", "disable_parallel_tool_use": False}, "gpt-5.4", "openai", None),
({"type": "auto"}, "gpt-5.4", "openai", None),
# cohere_chat declares no parallel_tool_calls: the flag stays behind instead of raising UnsupportedParamsError
({"type": "auto", "disable_parallel_tool_use": True}, "command-a-03-2025", "cohere_chat", None),
# no resolved provider (logging and guardrail callers): the flag stays behind as before
({"type": "auto", "disable_parallel_tool_use": True}, "gpt-5.4", None, None),
],
ids=[
"openai-auto-disabled",
"openai-any-disabled",
"groq-auto-disabled",
"openai-auto-enabled",
"openai-auto-omitted",
"cohere-declares-no-parallel-tool-calls-stays-behind",
"no-provider-stays-behind",
],
)
def test_translate_anthropic_to_openai_disable_parallel_tool_use_sets_parallel_tool_calls(
tool_choice: dict[str, object],

View file

@ -57,9 +57,9 @@ def test_build_responses_kwargs_never_asks_the_nested_call_to_replay_a_stream():
[
("openai/gpt-5.6-luna", "openai", False),
("azure/gpt-5.6-luna", "azure", False),
# Perplexity's Responses API declares no parallel_tool_calls: the flag stays behind instead of a 400
("perplexity/sonar", "perplexity", None),
],
ids=["openai-declares", "azure-declares", "perplexity-declares-no-parallel-tool-calls-stays-behind"],
)
def test_build_responses_kwargs_maps_disable_parallel_tool_use_only_where_the_provider_declares_it(
model: str, custom_llm_provider: str, expected_parallel_tool_calls: bool | None