tests.test_checksums module

Tests for the binary tool registry checksum update logic.

tests.test_checksums.test_update_registry_checksums_replaces_stale_hash(tmp_path)[source]

update_registry_checksums replaces stale hashes in tool_registry.py.

tests.test_checksums.test_update_registry_checksums_noop_when_current(tmp_path)[source]

update_registry_checksums does not rewrite when all hashes match.

tests.test_checksums.test_update_registry_checksums_reconciles_version_stamp(tmp_path)[source]

A stale VERSIONS stamp is reconciled to the registry version.

tests.test_checksums.test_update_registry_checksums_version_override(tmp_path)[source]

version_overrides downloads at the override version and stamps it.

Models the sync-tool-versions flow: the source was bumped (so the file holds the new version) while the in-memory registry still holds the old one, and the override drives both the download URL and the VERSIONS stamp.