test(cli): the tax-policy journey counts the call's frame lines

An account made through books.add_account with its tax category is the
begun line, account.added, account.tax_set and the closing line: four
lines, not two (WB-format-8).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
swaitsandClaude Fable 5.2 committed 2026-11-21 12:30:25 -07:00
1 parent 38612ab553
commit a0fee420cd
2 files changed
+6 -6

No files matched your search

+5 -1
View File
@@ -241,7 +241,11 @@ fn require_tax_category_refuses_defect_8() {
json!({"code": "6160", "name": "Hosting", "account_type": "expense", "tax_category": "other_deductions"}),
);
assert!(out.get("warnings").is_none(), "{out}");
assert_eq!(m.events(), before + 2, "account.added and account.tax_set");
assert_eq!(
m.events(),
before + 4,
"call.begun, account.added, account.tax_set, call.closed"
);
// A header is exempt.
add(
&mut m,