Files
6krrt/tests/test_capabilities.py
adlee-was-taken 92adb5c29d test: pin iter_image_url_values contract on well-typed-but-unparseable input
The shared helper's fail-closed behavior (yielding the "" sentinel rather
than skipping a well-typed-but-unparseable image_url part) was only tested
indirectly through detect_capabilities. Add direct unit tests covering the
four input shapes of the shared-helper-unparseable-input-contract plan:
common/valid, alternate valid, well-typed-but-unparseable (-> sentinel), and
wrong-typed/absent (-> skip). Presence of the image_url key is the type tag:
a present-but-malformed payload still yields the sentinel.
2026-08-23 16:02:25 -04:00

6.4 KiB