gabriel / muse public
refactor tests task/hashlib-cleanup #1 / 1
AI Agent gabriel · 37 days ago · May 5, 2026 · Diff

refactor(tests): eliminate remaining hashlib wrappers; fix genesis docstrings

- Replace long_id(hashlib.sha256(data).hexdigest()) with f'sha256:{hashlib.sha256(data).hexdigest()}' in test_core_types.py (blob_id and hash_file test assertions — keeps actual verification) - Replace long_id(hashlib.sha256(data).hexdigest()) with blob_id(data) in test_public_key_fingerprint.py; remove unused long_id and hashlib imports - Inline blob_id + split_id in shelf-path helpers across test_cmd_gc_hardening, test_gc_full, test_object_store_write_taxonomy, test_core_gc, test_gc_path_helpers_and_remote_refs; remove import hashlib from each - test_hash_object_canonical: bare_hex = split_id(blob_id(content))[1]; remove hashlib - test_security_object_store_poisoning: remove _sha256 wrapper; inline blob_id at ~10 sites; replace streaming sha256 block with hash_file(); remove hashlib - test_code_migrate: _object_flat/_object_canonical use blob_id+split_id; remove hashlib

sha256:3fb803bba4132194e20e5bd58d61330d939d141b441f657239c021e9f2181ce0 sha
sha256:e6f9dc0d23d6e6b1ee369ddfeab21c78e4ebd2a52e9edc2c268ec7d12bbeb1a2 snapshot
← Older Oldest on task/hashlib-cleanup
All commits
Newer → Latest on task/hashlib-cleanup

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:3fb803bba4132194e20e5bd58d61330d939d141b441f657239c021e9f2181ce0 --body "your comment"