test(images): cover bmp v5 header parsing

This commit is contained in:
shrey kharbanda 2026-09-24 08:52:19 +00:00
parent 5f576ae5e8
commit 9505cb1553

View file

@ -177,6 +177,11 @@ def _dims(width: int, height: int) -> ImageDimensions:
_dims(640, 480),
id="bmp-v4header",
),
pytest.param(
b"BM" + bytes(12) + struct.pack("<I", 124) + struct.pack("<ii", 640, 480) + bytes(6),
_dims(640, 480),
id="bmp-v5header",
),
pytest.param(b"II*\x00" + bytes(28), None, id="unknown-format"),
),
)