mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-10-14 05:20:46 +02:00
Compare capture paths in POSIX form on every platform
The manifest stores forward-slash paths, and str() of a Windows path uses backslashes, so the index test failed on both Windows CI jobs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f855c4700f
commit
e310a22bd8
1 file changed
+1
-1
@@ -33,7 +33,7 @@ def test_every_stored_capture_is_indexed_once(manifest: Path):
|
||||
assert len(indexed) == len(set(indexed))
|
||||
assert len({row["sha256"] for row in rows}) == len(rows)
|
||||
on_disk = {
|
||||
str(path.relative_to(ROOT))
|
||||
path.relative_to(ROOT).as_posix()
|
||||
for path in manifest.parent.rglob("*")
|
||||
if path.is_file() and path.name not in {"manifest.csv", "README.md"}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user