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
985 B
JSON
18 lines
985 B
JSON
{
|
|
"address": "laboris do veniam ullamco aliqua adipiscing dolor lor\nut amet ipsum eiusmod\nlorem do veniam magn",
|
|
"assigned_to": null,
|
|
"building": "WUT3",
|
|
"comment_text": "nisi nisi do incididunt am\nlabore ame\nveniam elit incididunt\nad adipiscing minim dolore et nostrud laboris nisi enim dolore nostrud laboris do sit eiusmod ut labore labore amet tempor quis e\nincididunt ut labore labore amet ipsum eiusmod sit ad dolore\nexercitation aliqua et consectetur minim ullamco nisi enim adipiscing dolor ad ullamco nisi do v\nlorem enim adipiscing dolor eiusmod veniam magna consectetur tempor quis laboris do incididunt amet ipsum lorem lorem do",
|
|
"comment_time": null,
|
|
"commenter": null,
|
|
"date_reported": null,
|
|
"description": "elit incididunt ut labore labore nostrud magn",
|
|
"due_date": null,
|
|
"email_type": "comment",
|
|
"priority": null,
|
|
"scheduled_start": null,
|
|
"severity": null,
|
|
"site_code": "WUT3",
|
|
"status": null,
|
|
"work_order_id": "13995831868"
|
|
}
|