gabriel / musehub public
refactor tests task/blob-id-audit #1 / 1
AI Agent gabriel · 44 days ago · May 5, 2026 · Diff

refactor(tests): eliminate _sha/_sha256_oid/_blob_id wrappers; inline blob_id at all call sites

- Remove all def _sha, def _sha256_oid, and blob_id/_blob_id alias patterns from 34 test files - Fix test_social_api.py: bare-hex _blob_id (no prefix — a bug) → blob_id() + split_id() - Path construction now embeds algorithm: posts/sha256/{hex[:16]}.json not posts/{bare_hex[:16]}.json - Replace long_id(hashlib.sha256(X).hexdigest()) with blob_id(X) throughout - Remove now-unused 'import hashlib' statements from all affected files - factories.py: commit_id LazyFunction now uses blob_id(str(uuid4()).encode()) - conftest.py: _sha(str) helper removed; all 16 call sites inlined with blob_id(f'...'.encode())

sha256:3a29a6fd5c0da6ed1e40a498f5c491bee45c684b34936b55e64be6b76413cb52 sha
sha256:b03a194375d97497bc28cec8c01a3654296f5fa9e37164d7ecae776667f013ad snapshot
← Older Oldest on task/blob-id-audit
All commits
Newer → Latest on task/blob-id-audit

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:3a29a6fd5c0da6ed1e40a498f5c491bee45c684b34936b55e64be6b76413cb52 --body "your comment"