Test: adattati ai campi e alle funzioni rimossi (B)

I test che usavano i campi tolti dai provider (api_key, merge_system_messages, keyring_account,
hosted_web_search), il provider OpenAI integrato o i modelli ausiliari sono adattati; sono
cancellati solo i test del codice rimosso (chiave nel portachiavi per provider, elenco modelli
da /models, URL websocket OpenAI di fallback). Aggiornata la chiave attesa del portachiavi
per ~/.akode (come in 9df212cf).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 13:08:56 +01:00
parent 47d6f1eb6b
commit 05803fcbb5
35 changed files with 16 additions and 238 deletions

View File

@@ -86,7 +86,7 @@ fn required_provider_definitions_are_validated_without_local_defaults() -> anyho
for invalid in [
"[model_providers.gateway]\nbase_url = 'https://example.test'",
"[model_providers.ollama]\nname = 'Reserved'",
"[model_providers.gateway]\nname = 'Gateway'\nbase_url = 'https://example.test'\napi_key = 'keyring'\nenv_key = 'GATEWAY_KEY'",
"[model_providers.gateway]\nname = 'Gateway'\nbase_url = 'https://example.test'\nenv_key = 'GATEWAY_KEY'\n[model_providers.gateway.auth]\ncommand = 'print-token'",
] {
let requirements = toml::from_str(invalid)?;
let local =