code editor: Agent Studio improvement iteration 2 for invoice-guard-studio-v1. Goal
This commit is contained in:
@@ -76,6 +76,15 @@ def test_incomplete_invoice_failure_fixture():
|
||||
assert result["code"] == "incomplete_invoice"
|
||||
assert "vendor" in result["message"] and "total" in result["message"]
|
||||
|
||||
blank = _review_payload("studio-invoice-invalid", [{"invoice_number": " ", "vendor": " ", "subtotal": 10, "tax": 1, "total": 11}])
|
||||
assert blank["ok"] is False
|
||||
assert blank["code"] == "incomplete_invoice"
|
||||
assert "invoice_number" in blank["message"] and "vendor" in blank["message"]
|
||||
|
||||
oversized = _review_payload("studio-invoice-invalid", [{"invoice_number": "I" * 121, "vendor": "Acme", "subtotal": 10, "tax": 1, "total": 11}])
|
||||
assert oversized["ok"] is False
|
||||
assert oversized["code"] == "invalid_invoice"
|
||||
|
||||
|
||||
def test_browser_upload_bridge_bounds_and_parses_json():
|
||||
payload = json.dumps({"invoices": SUCCESS_INVOICES}).encode()
|
||||
|
||||
Reference in New Issue
Block a user