procurement-ingest/lambdas/wo/email_processor/tests/fixtures/expected/update-plaintext-49.json
Adam Moussa 89bf47c1bb
Add offline WO parser test suite
Cover the deterministic parser with golden-file tests over 55 real
scrubbed .eml fixtures (both comment sub-shapes, username Submitted-By,
address present/absent, br+CRLF assign addresses), fail-closed
validation-gate rules, adversarial and prompt-injection cases that must
route to ai_fallback or parse without corrupting other fields, the issue
#23 comment_id idempotency invariants, and the Bedrock-fallback dispatch
plus EMF-metric emission with a mocked invoke_model.

Extend pytest.ini testpaths to discover the co-located suite, and update
tests/conftest.load_handler to put a handler's own directory on sys.path
so the WO handler's new `from template_parser import ...` resolves under
the existing shared handler tests. Point test_local.py at the new
template-first + Bedrock flow.

Refs: #23
2026-07-15 20:11:04 -04:00

18 lines
1 KiB
JSON

{
"address": "do veniam magna et consectetur ipsum enim adipiscing dolor ad adipiscing mlorem enim exercitatio",
"assigned_to": null,
"building": "HGR0",
"comment_text": "labore amet ipsum eiusmod ut quis magna exercitation sed incididunt amet aincididunt ut quis elit minim elit incididunt amet tempor quis laboris do aliqua et nostrud sed incididunt amet ipsum eiusmod veniam elit dolor ad aconsectetur minim elit incididunt amet tempor ut quis laboris nisi do venialiqua et labore amet ipsum enim exercitation aliqua et labore amet tempordolore et labore amet ad dolore consectetur tempor quis magna et labore amminim elit dolor lorem",
"comment_time": "2026-06-30T14:30:29",
"commenter": "sit ad",
"date_reported": null,
"description": "et nostrud laboris do sit eiusmod veniam ullamcelit minim dolore et nostrud labor",
"due_date": null,
"email_type": "comment",
"priority": null,
"scheduled_start": null,
"severity": null,
"site_code": "HGR0",
"status": null,
"work_order_id": "12123384706"
}