From e886bd2a87ffc0486c7a3d452812c1e4855ea5c9 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 15 Sep 2026 13:28:45 -0400 Subject: [PATCH] test(rules): rules_payload fixtures carry a title, as every rule_brief does (#4081) Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01821k5B3Ysecp9fNYs92Kuy --- tests/test_rule_usage_wiring.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_rule_usage_wiring.py b/tests/test_rule_usage_wiring.py index 4233a0d..952b29b 100644 --- a/tests/test_rule_usage_wiring.py +++ b/tests/test_rule_usage_wiring.py @@ -327,8 +327,9 @@ def test_rules_payload_records_both_the_family_and_project_halves(): with patch.object(svc, "record_rule_surfaced", rec): svc.rules_payload( { - "rules": [{"id": 10}, {"id": 11}], - "project_rules": [{"id": 12}], + # rule_brief always carries a title; a listing names each rule. + "rules": [{"id": 10, "title": "a"}, {"id": 11, "title": "b"}], + "project_rules": [{"id": 12, "title": "c"}], "truncated": False, }, user_id=1,