mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-10-07 16:08:54 +00:00
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
18 lines
1,013 B
JSON
18 lines
1,013 B
JSON
{
|
|
"address": "veniam elit dolor ad adipiscing minim elit dolor eiusmod ut labore labore",
|
|
"assigned_to": null,
|
|
"building": "SWI4",
|
|
"comment_text": "dolore consectetur minim\neiusmod ut\nsit ad dolore consectet\nsit eiusmod sit ad adipiscing tempor sit eiusmod ut amet ipsum lorem enim adipiscing tempor ut quis elit minim ullamco aliqua exercitation sed dolor eiusmod ut quis laboris aliqu\nquis magna et nostrud laboris nisi enim adipiscing dolor lorem do v\nnisi enim dolore et nostrud sed incididunt amet tempor sit ipsum lorem lorem do sit\nlorem do veniam magna consectetur minim ullamco nisi enim adipiscing tempor quis magna consectetur minim elit dolor lorem",
|
|
"comment_time": null,
|
|
"commenter": null,
|
|
"date_reported": null,
|
|
"description": "ad adipiscing dolor eiusmod sit ad adipiscing minim ull",
|
|
"due_date": null,
|
|
"email_type": "comment",
|
|
"priority": null,
|
|
"scheduled_start": null,
|
|
"severity": null,
|
|
"site_code": "SWI4",
|
|
"status": null,
|
|
"work_order_id": "14882673235"
|
|
}
|