test(ledger): derive summary expectation follows #2872 — dup group before name group
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 6s
CI & Build / integration (push) Failing after 20s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 58s
CI & Build / Build & push image (push) Successful in 22s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 15:11:25 -04:00
co-authored by Claude Fable 5
parent 1209e1c2d9
commit d01201539b
+5 -1
View File
@@ -531,7 +531,11 @@ async def test_derive_groups_land_on_rows_and_in_the_summary(seeded):
summary = proposal_summary(await live_rows(pid))
assert summary["proposed"] == 1
assert [g["group"] for g in summary["derive_groups"]][0] == "name:css:card"
# #2872: the body-identical group (a real copy) outranks the bigger name
# group (usually convention), even at size 2 vs 3.
order = [g["group"] for g in summary["derive_groups"]]
assert order[0].startswith("dup:") and order[1] == "name:css:card"
assert summary["derive_groups"][0]["files"] == 2
assert summary["derive_groups"][0]["label"] == ".card"
assert summary["derive_groups"][0]["size"] == 3