From 5eb160099bfe3b2e6623b5e8fd7144029b8c63cc Mon Sep 17 00:00:00 2001 From: chengyongru Date: Fri, 9 Oct 2026 14:12:34 +0800 Subject: [PATCH] test(cli): reject proxies on unsupported Azure transport --- tests/cli/test_commands.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/cli/test_commands.py b/tests/cli/test_commands.py index b34fa3aaf..258567fc7 100644 --- a/tests/cli/test_commands.py +++ b/tests/cli/test_commands.py @@ -1287,20 +1287,21 @@ def test_provider_proxy_rejects_unsupported_backend(): { "agents": { "defaults": { - "provider": "anthropic", - "model": "anthropic/claude-opus-4-5", + "provider": "azure_openai", + "model": "gpt-4.1", } }, "providers": { - "anthropic": { + "azureOpenai": { "apiKey": "sk-test", + "apiBase": "https://azure.example/openai/v1", "proxy": "http://127.0.0.1:23458", } }, } ) - with pytest.raises(ValueError, match=r"providers\.anthropic\.proxy"): + with pytest.raises(ValueError, match=r"providers\.azure_openai\.proxy"): make_provider(config)