Test: errori di configurazione e CSV, domini.toml non validi, exit code CLI, varianti di report e grafici

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
davideandClaude Sonnet 5.5 committed 2026-10-29 13:32:23 +01:00
1 parent bb2e3bd2d4
commit cfb1eb66a5
5 files changed
+104

No files matched your search

+9
View File
@@ -180,3 +180,12 @@ def test_salto_con_tratto_adiacente_indeterminato_usa_la_misura_corretta(cfg):
assert g["stima"] == "misura corretta"
assert abs(g["delta"] - ampiezza) <= abs(g["delta_misurato"] - ampiezza) + 1e-9
assert g["delta"] == pytest.approx(ampiezza, rel=0.03)
def test_dati_non_finiti_non_convergono_senza_eccezioni(cfg):
t = np.arange(20) * 0.15
y = 25.0 + np.exp(-t / 5.0)
y[3] = np.nan
for nome in MODELLI:
r = adatta(t, y, nome, 0.1, cfg)
assert r["convergenza"] is False and r["modello"] == nome