Integrazione 0.1.1: unione di correzione/prove-su-windows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/decisioni.md
This commit is contained in:
Alby96 committed 2026-10-20 18:05:33 +02:00
commit 5dc9b4c6ae
7 files changed
+105 -16

No files matched your search

+4 -2
View File
@@ -163,10 +163,12 @@ public sealed class ImportApiTests
Assert.AreEqual(HttpStatusCode.BadRequest, sources, "desktop: the native picker, no listing");
}
// Docker: the sources live under /importa (absent on this machine: the listing says so).
// Docker: the sources live under /importa (absent on this machine: the listing says so). The root is reported as
// a full path: «/importa» in the container, rooted on the current drive where the edition runs for development
// on Windows.
await using var docker = await Part2.StartAsync();
var overview = await docker.GetJsonAsync("/api/import");
Assert.AreEqual("/importa", overview.Str("sourceRoot"));
Assert.AreEqual(Path.GetFullPath("/importa"), overview.Str("sourceRoot"));
Assert.IsFalse(overview.Bool("pickFolder"));
var (pick, _) = await docker.SendJsonAsync(HttpMethod.Post, "/api/import/pick-folder");
Assert.AreEqual(HttpStatusCode.BadRequest, pick);