gabriel / muse public
fix tests dev
AI Agent gabriel · 158 days ago · Apr 20, 2026 · Diff

fix(tests): algo-prefix path fixes in test_cmd_check and test_apply_pack_oserror_integrity; delete contradicting test_branch_envelope

- test_cmd_check.py: _write_commit_chain now creates commits/sha256/ parent dir before writing msgpack (commit_path returns algo-prefixed path after the algo-prefix sprint; mkdir was missing, causing FileNotFoundError in 59 tests) - test_apply_pack_oserror_integrity.py: _write_impostor_file writes to commits/sha256/<hex>.msgpack (algo-prefixed) so write_commit can detect the impostor; also adds parents=True, exist_ok=True mkdir - tests/test_branch_envelope.py: deleted — expected a JSON envelope wrapper on muse branch --json output, contradicting the spec (plain list) and 58+ other tests that already pass

sha256:4c20d0886b852b147f69155b7024c6c17028be3484ea4efd154fdcfb2803dec2 sha
~4 −9 symbols
sha256:31af2f5c7a4a34b9e2ad1b6cac972488b308cc3e763c9cbdcf1c876ebb3df8af snapshot
~4
symbols modified
−9
symbols removed
0
dead code introduced
Semantic Changes 13 symbols
~ tests/test_branch_envelope.py .py 9 symbols removed
− TestBranchEnvelope class class TestBranchEnvelope L18–24
− test_list_has_envelope method method test_list_has_envelope L19–24
− _FIELDS variable variable _FIELDS L9–9
− _check function function _check L12–15
− CliRunner import import CliRunner L5–5
− annotations import import annotations L2–2
− json import import json L3–3
− pytest import import pytest L4–4
− runner variable variable runner L7–7
~ tests/test_cmd_check.py .py 1 symbol modified
← Older Oldest on dev
All commits
Newer → Latest on dev

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:4c20d0886b852b147f69155b7024c6c17028be3484ea4efd154fdcfb2803dec2 --body "your comment"