test(cli): reject proxies on unsupported Azure transport
This commit is contained in:
1 parent
fe4933d073
commit
5eb160099b
1 file changed
+5
-4
@@ -1287,20 +1287,21 @@ def test_provider_proxy_rejects_unsupported_backend():
|
|||||||
{
|
{
|
||||||
"agents": {
|
"agents": {
|
||||||
"defaults": {
|
"defaults": {
|
||||||
"provider": "anthropic",
|
"provider": "azure_openai",
|
||||||
"model": "anthropic/claude-opus-4-5",
|
"model": "gpt-4.1",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"providers": {
|
"providers": {
|
||||||
"anthropic": {
|
"azureOpenai": {
|
||||||
"apiKey": "sk-test",
|
"apiKey": "sk-test",
|
||||||
|
"apiBase": "https://azure.example/openai/v1",
|
||||||
"proxy": "http://127.0.0.1:23458",
|
"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)
|
make_provider(config)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user