gabriel / muse public
fix task/fix-warnings-and-tests #1 / 2
gabriel · 63 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
sha256:efbd8182a63b024ce4bb59ba307296338908410924ef8d8f2cc01ba9e33811a3 snapshot

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"