End-to-end tests for freshen and fetch (closes #66) #145

Merged
clawbot merged 1 commits from issue-66-e2e-freshen-fetch into next 2026-10-04 17:02:23 +02:00
1 Commits
Author SHA1 Message Date
sneak 3957bf1db5 End-to-end tests for freshen and fetch (closes #66)
check / check (push) Failing after 1s
The freshen tests built a fixture and never ran freshen. They now run
gen and freshen through the command entry point on a temp dir: an
unchanged tree leaves the manifest's entries as they were, and a
modified file (also one edited without changing its size), a new or a
deleted file gives a manifest that lists exactly the tree, with sizes,
hashes and mtimes from disk, on which check passes.

New fetch tests run the command against an httptest server: a nested
tree lands complete, a hash mismatch exits non-zero and leaves no file,
and a partly filled destination gets every listed file downloaded again
and replaced, while a file the manifest does not list is left alone.

Model: opus-5-5
2026-10-04 14:36:40 +00:00