test(rules): rules_payload fixtures carry a title, as every rule_brief does (#4081)
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 10s
CI & Build / integration (push) Successful in 42s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / Python tests (push) Canceled after 1m27s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 10s
CI & Build / integration (push) Successful in 42s
CI & Build / TypeScript typecheck (push) Successful in 53s
CI & Build / Build & push image (push) Canceled after 0s
CI & Build / Python tests (push) Canceled after 1m27s
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01821k5B3Ysecp9fNYs92Kuy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user