diff --git a/test/detection/test_vlm.py b/test/detection/test_vlm.py index 7bfc2313..9a0195f7 100644 --- a/test/detection/test_vlm.py +++ b/test/detection/test_vlm.py @@ -357,6 +357,18 @@ def test_from_paligemma( np.array(["dog", "cat"], dtype=str), ), ), # truncated response, last object unfinished, previous ones recovered + ( + pytest.raises(ValueError), + """```json + [ + {"bbox_2d": [10, 20, 110, 120], "label": "cat"} + ] + ```""", + (0, 640), + (1280, 720), + None, + None, # invalid input_wh + ), ( pytest.raises(ValueError), """```json