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

@@ -129,16 +129,10 @@ impl MockResponsesConfig {
if !provider_config.contains("capabilities") && !extra_config.contains("capabilities") {
if provider_name == "OpenAI" {
provider_config.push_str(
"\ncapabilities = { hosted_web_search = true, remote_compaction = \"v2\" }",
"\ncapabilities = { remote_compaction = \"v2\" }",
);
} else {
provider_config.push_str("\ncapabilities = { hosted_web_search = true }");
}
}
// Request-shape tests keep the upstream instruction layout; merging has its own tests.
if !provider_config.contains("merge_system_messages") {
provider_config.push_str("\nmerge_system_messages = false");
}
let feature_entries = features
.into_iter()
.map(|(feature, enabled)| {