litellm/tests/test_litellm/llms/azure
mateo-berri 5aa45f1bca test(realtime): drop legacy InvalidStatusCode tests and pin websockets imports
The two redaction tests raised the deprecated InvalidStatusCode, which the
websockets 15 asyncio client never raises, and asserted the raw 403 close
code that the handshake refusal path replaced with 1008. The refusal path
builds its close reason from the status code alone, so there is no secret
to redact there, and the handshake refusal tests already cover the error
event and the 1008 close.

Those refusal tests only passed when run after a sibling test had imported
websockets.asyncio.client, since websockets lazy-loads its exceptions
submodule. Importing InvalidStatus, Response, and Headers from their own
submodules makes them pass in any order.

(cherry picked from commit 54dbe8eb9a)
2026-09-23 00:46:03 +00:00
..
batches test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
chat fix(openai): drop tool schema regex patterns OpenAI's validator cannot compile (#40485) 2026-09-09 22:08:30 -07:00
image_edit fix(azure): honor base_url client param and drop stale api-version on v1 image routes 2026-08-26 01:49:48 +00:00
image_generation fix(azure): send the deployment name as the body model on v1 image routes 2026-08-29 11:41:58 -07:00
passthrough fix(azure): keep the model group segment exact and casefold only deployment names in the relay guard 2026-09-08 17:19:23 -07:00
realtime test(realtime): drop legacy InvalidStatusCode tests and pin websockets imports 2026-09-23 00:46:03 +00:00
response fix(openai): drop tool schema regex patterns OpenAI's validator cannot compile (#40485) 2026-09-09 22:08:30 -07:00
search fix(azure/search): reject bool and non-positive max_results for bing_grounding count 2026-08-24 12:53:44 -07:00
text_to_speech style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
videos test(lint): ban blind pytest.raises(Exception) with ruff B017 (#37731) 2026-08-20 18:09:42 -07:00
test_audio_transcriptions.py fix(azure): price azure_ai transcriptions at the azure_ai cost-map entry 2026-09-08 17:12:18 -07:00
test_azure_common_utils.py fix(azure): default max_retries to DEFAULT_MAX_RETRIES with regression tests 2026-09-09 14:29:06 -07:00
test_azure_cost_calculation.py fix(cost): pass service_tier through azure and azure_ai cost calculation (#24926) 2026-05-01 17:26:45 +05:30
test_azure_embedding.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_azure_exception_mapping.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_azure_fine_tuning_api.py refactor: refactor testing 2026-03-28 18:39:32 -07:00
test_azure_speech_audio_transcription.py feat(azure): add speech transcription config support (#27482) 2026-05-23 12:16:01 -07:00