kiwi/tests/test_services
pyr0ball b9c308ab28 fix: docuvision fast-path falls through when parse yields no items
_parse_json_from_text always returns a dict (never None), so the
previous `if parsed is not None` guard was permanently true — garbled
docuvision output would return an empty skeleton instead of falling
through to the local VLM. Replace the check with a meaningful-content
test (items or merchant present). Add two tests: one that asserts the
fallthrough behavior on an empty parse, one that confirms the fast path
is taken when parsing succeeds.
2026-04-02 13:49:38 -07:00
..
__init__.py feat: add DocuvisionClient + cf-docuvision fast-path for OCR 2026-04-02 12:33:05 -07:00
test_docuvision_client.py fix: docuvision fast-path falls through when parse yields no items 2026-04-02 13:49:38 -07:00