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:
1 parent
38612ab553
commit
a0fee420cd
2 files changed
+6
-6
No files matched your search
@@ -808,11 +808,7 @@ fn tin_bearing_files_are_refused_when_given_back_to_be_filed() {
|
||||
// Raw bytes, frame lines included: an upload slot writes no line, and a
|
||||
// refusal is decided before anything is written, so no frame (begun or
|
||||
// closed, with its error text) stands for any of these calls.
|
||||
assert_eq!(
|
||||
books.journal_raw(),
|
||||
journal,
|
||||
"a refusal stored something"
|
||||
);
|
||||
assert_eq!(books.journal_raw(), journal, "a refusal stored something");
|
||||
// Without TINs, the 1099 worksheet is an ordinary file: it may be
|
||||
// filed like any other.
|
||||
let plain = mcp.call("books.vendor_1099", json!({"year": 2026, "csv": true}));
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user