test(ledger): derive label order follows #2872; binding-ref test imports compute_coverage
CI & Build / Python lint (push) Successful in 4s
CI & Build / Plugin hooks (push) Successful in 7s
CI & Build / TypeScript typecheck (push) Canceled after 22s
CI & Build / Python tests (push) Canceled after 22s
CI & Build / integration (push) Canceled after 21s
CI & Build / Build & push image (push) Canceled after 0s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 15:15:09 -04:00
co-authored by Claude Fable 5
parent 1a8e5787e8
commit 3849c6fff3
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -536,7 +536,8 @@ async def test_derive_groups_land_on_rows_and_in_the_summary(seeded):
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]["label"] == "slug (identical body)"
assert summary["derive_groups"][1]["label"] == ".card"
assert summary["derive_groups"][0]["size"] == 3
# One of the css copies gets judged → the group shrinks on the next pass.
+1
View File
@@ -552,6 +552,7 @@ def test_scoped_definitions_are_vue_script_setup_and_scoped_style_only():
async def test_binding_ref_is_the_branch_the_ledger_follows(seeded):
"""#2873: a binding that names a ref is read at that ref (not the forge's
default branch); "" clears it; None on a re-bind leaves it standing."""
from scribe.services.coverage import compute_coverage
from scribe.services.repo_bindings import bindings_for_project, set_binding
uid, pid = seeded["uid"], seeded["pid"]
b = await set_binding(uid, "https://git.example.com/alice/widget.git", pid, "dev")