Mimante 1.9.0: repository alla radice, CI, esportazioni, dati, riscatto, grafica #39

Merged
Alby96 merged 24 commits from claude/bot-improvements-standardization-7a7706 into main 2026-11-24 22:44:50 +01:00
Showing only changes of commit 5646391820 - Show all commits
+4 -2
View File
@@ -502,9 +502,10 @@ public class CsvExportTests(DatabaseFixture fx)
Assert.Equal(new byte[] { 0xEF, 0xBB, 0xBF }, bytes[..3]);
var lines = Encoding.UTF8.GetString(bytes[3..]).Split("\r\n", StringSplitOptions.RemoveEmptyEntries);
var header = lines[0].Split(';');
Assert.Equal(17 + BidFeatures.Size + 28, header.Length);
Assert.Equal(17 + BidFeatures.Size + 32, header.Length);
Assert.Equal("id_decisione", header[0]);
Assert.Equal("motivazione", header[^1]);
Assert.Equal("motivazione", header[^5]);
Assert.Equal(new[] { "ripetizioni", "ultimo_prezzo", "parere_modello", "nota_fuoco" }, header[^4..]);
var row = lines[1].Split(';');
Assert.Equal(header.Length, row.Length);
Assert.Equal("3,2", row[Array.IndexOf(header, "prezzo")]);
@@ -514,6 +515,7 @@ public class CsvExportTests(DatabaseFixture fx)
Assert.Equal("manuale", row[Array.IndexOf(header, "risposto_tipo")]);
Assert.Equal("4", row[Array.IndexOf(header, "risposto_dopo_s")]);
Assert.Equal("1407", row[Array.IndexOf(header, "puntate_residue")]);
Assert.Equal("1", row[Array.IndexOf(header, "ripetizioni")]);
Assert.Contains(row[17..(17 + BidFeatures.Size)], v => v == "1");
Assert.True(File.Exists(Path.Combine(paths.Exports, model.Files[1])));
Assert.Contains("Righe trovate: 1", File.ReadAllText(Path.Combine(paths.Exports, model.Files[1])));