litellm/tests/unit/images
ryan-crabbe-berri dadaf91190
fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form (#53864)
* test(images): cover JSON-form image references on /v1/images/edits

* fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form

* test(images): fold the image-reference case into the full-body mask assertion

* fix(images): keep image edits with an uploaded mask file on the multipart path

* fix(images): keep hosted vLLM and Azure MAI image edits on the form path

vLLM-Omni and the Azure AI Foundry MAI edit route only read form fields, so
JSON-form image references must not switch those requests to a JSON body.

* fix(proxy): check managed file ownership for image edit file references

* test(images): assert whole request bodies in image edit wire tests

* fix(images): check for uploaded files without recursion and keep the JSON path typed

* fix(proxy): validate the image edit request before walking it for file ids
2026-11-24 16:48:05 -08:00
..
request_payloads test: move the unit half of 126 mixed legacy files into tests/unit (#45090) 2026-10-07 14:07:43 -07:00
__init__.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_image_edit.py feat(dashscope): add image edits and text-to-speech (#48998) 2026-10-29 17:48:38 -07:00
test_image_edit_extra_params.py fix(images): send JSON-form image edits upstream as JSON instead of a url-encoded form (#53864) 2026-11-24 16:48:05 -08:00
test_image_edit_utils.py fix(vertex_ai): honor Gemini image size and imageConfig controls on generation and edits (#53580) 2026-11-23 09:05:25 -08:00
test_image_generation_extra_headers.py test: move tests/test_litellm root and small trees into tests/unit (#43186) 2026-09-25 11:30:43 -07:00
test_main.py fix(images): bill the deployment's custom pricing when the proxy pre-creates the logging object (#53994) 2026-11-23 17:37:37 -08:00
test_streaming.py fix(images): support stream=True on image generation and edit (#53966) 2026-11-23 18:01:29 -08:00