Prove dei percorsi uguali su Linux e su Windows
Tre prove scrivevano i percorsi attesi alla Linux («/tmp/febe-profilo», «/importa», la radice seguita da «/») e fallivano su Windows, dove il prodotto dà giustamente il percorso completo sull'unità corrente o il percorso scritto con «/». Ora l'atteso si calcola come lo calcola il sistema: su Linux il testo resta identico a prima, su Windows le prove passano dove gira Febe per Windows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
edade61b72
commit
d9d8a296b1
4 files changed
+10
-4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user