From 3849c6fff32392d2f70abbe14fd7cb1cfbfa237e Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 21 Aug 2026 15:15:09 -0400 Subject: [PATCH] test(ledger): derive label order follows #2872; binding-ref test imports compute_coverage Co-Authored-By: Claude Fable 5 --- tests/test_integration_shape_classify.py | 3 ++- tests/test_pattern_coverage.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_integration_shape_classify.py b/tests/test_integration_shape_classify.py index 8b74470..49bbfbb 100644 --- a/tests/test_integration_shape_classify.py +++ b/tests/test_integration_shape_classify.py @@ -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. diff --git a/tests/test_pattern_coverage.py b/tests/test_pattern_coverage.py index c603fc7..a49f24d 100644 --- a/tests/test_pattern_coverage.py +++ b/tests/test_pattern_coverage.py @@ -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")