tests.test_checksums moduleΒΆ
Tests for the binary tool registry checksum update logic.
- tests.test_checksums.test_download_sha256_retries_a_failed_first_attempt()[source]ΒΆ
One connection reset does not end a download: the next attempt answers.
A batch downloads every binary of the registry, so one transient error must not abort it.
- 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-versionsflow: 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.