mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-30 01:52:18 +00:00
test(images): cover bmp v5 header parsing
This commit is contained in:
parent
5f576ae5e8
commit
9505cb1553
1 changed files with 5 additions and 0 deletions
|
|
@ -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"),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue