Test: ultimi adattamenti ai campi e agli strumenti rimossi (B)

Tolti i campi api_key dei provider nei letterali dei test, il test del tool function di
apply_patch (funzione F non portata) e i test di login --provider; i test di core, tui, cli,
exec, mcp e app-server compilano di nuovo (cargo check --tests).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-17 13:15:04 +01:00
parent 05803fcbb5
commit 875a8e4d58
9 changed files with 0 additions and 135 deletions

View File

@@ -1,24 +0,0 @@
use anyhow::Result;
use predicates::str::contains;
use std::path::Path;
use tempfile::TempDir;
fn codex_command(codex_home: &Path) -> Result<assert_cmd::Command> {
let mut cmd = assert_cmd::Command::new(akode_utils_cargo_bin::cargo_bin("akode")?);
cmd.env("AKODE_HOME", codex_home);
Ok(cmd)
}
#[cfg(debug_assertions)]
#[tokio::test]
async fn update_does_not_start_interactive_prompt() -> Result<()> {
let akode_home = TempDir::new()?;
codex_command(codex_home.path())?
.arg("update")
.assert()
.failure()
.stderr(contains("`akode update` is not available in debug builds"));
Ok(())
}