test: assert the prefixed model the azure responses bridge now hands back (#37749)

a369cb0da7 made completion() hand the prefixed model back to responses(), so
that responses() running get_llm_provider() a second time becomes a no-op
instead of stripping a prefix the model id owns. That was deliberate, and it
shipped with its own unit test, but it left two older assertions behind still
expecting the bare id.

#37744 corrected the openai one in test_openai.py. This is its azure sibling,
which llm_translation_testing has been failing on ever since.

Only the expected value moves. The neighbouring custom_llm_provider assertion
already passes and stays as it is.
This commit is contained in:
yuneng-jiang 2026-08-20 18:53:23 -07:00 committed by GitHub
parent 4e02e7e404
commit 60225ab429
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -650,7 +650,7 @@ def test_azure_openai_responses_bridge():
mock_responses.assert_called_once()
assert (
mock_responses.call_args.kwargs["model"]
== "test-azure-computer-use-preview"
== "azure/test-azure-computer-use-preview"
)
assert mock_responses.call_args.kwargs["custom_llm_provider"] == "azure"