gabriel / muse public
fix task/fix-warnings-and-tests #1 / 2
gabriel · 167 days ago · Apr 14, 2026 · Diff

fix: update tests to match current API shapes

- test_push_have_filter: filter_objects mock returns FilterObjectsResult TypedDict (missing=[], bases={}) — code accesses result['missing'] not result[0], so bare [] raised TypeError - test_integrity_I7_history_walk: use _make_diverging_branches(root,110,110) for TestFindMergeBaseAtCap — tip_b was an ancestor of tip_a in the same linear chain so BFS found the base before hitting the cap; truly diverging branches with 110 commits each need 220+ visits to find base - test_pack_missing_snapshot_integrity: build_pack_from_walk now raises ValueError('Push aborted: N snapshot(s) missing') instead of silently excluding commits; update all affected tests to expect the raise so they are authoritative for the strict, no-dangling-refs behaviour - test_cmd_hub_hardening: sync proposal view→read, issue edit→update, issue get→read, hub_url→hub param renames from CLI refactor

sha256:45145c8cf01709237a7c07ce3e469ea5286b86076b3baec2bfb02a3ab3054b41 sha
+4 ~69 −3 symbols
sha256:efbd8182a63b024ce4bb59ba307296338908410924ef8d8f2cc01ba9e33811a3 snapshot
+4
symbols added
~69
symbols modified
−3
symbols removed
0
dead code introduced
Semantic Changes 76 symbols
~ tests/test_cmd_hub_hardening.py .py 58 symbols modified
~ tests/test_pack_missing_snapshot_integrity.py .py 3 symbols added, 3 symbols removed, 5 symbols modified
− test_pack_excludes_commit_when_snapshot_missing method method test_pack_excludes_commit_when_snapshot_missing L179–193
− test_pack_excludes_only_broken_commit_leaves_others method method test_pack_excludes_only_broken_commit_leaves_others L207–224
− test_pack_bundle_is_always_internally_consistent method method test_pack_bundle_is_always_internally_consistent L282–304
+ test_pack_raises_when_any_snapshot_missing_in_chain method method test_pack_raises_when_any_snapshot_missing_in_chain L211–224
+ test_pack_raises_when_snapshot_missing method method test_pack_raises_when_snapshot_missing L187–197
+ test_pack_aborts_on_chain_with_gaps method method test_pack_aborts_on_chain_with_gaps L282–298
~ tests/test_push_have_filter.py .py 1 symbol added, 3 symbols modified
+ FilterObjectsResult import import FilterObjectsResult L60–60

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:45145c8cf01709237a7c07ce3e469ea5286b86076b3baec2bfb02a3ab3054b41 --body "your comment"