litellm/tests/unit/router_utils/pre_call_checks
devin-ai-integration[bot] 10444df3a0
test: deflake the JEV classifier select and two router tests that inherited leaked state (#44840)
* test(ui): wait for the classifier model popup before picking its option

Base UI exposes its select option asynchronously, and the helper waits for the option and its positioner to become clickable before selection

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test: isolate two router tests from work leaked by earlier tests

Collect earlier tests' garbage before warning capture so their unawaited coroutines cannot be attributed to the target's warning assertion

Filter success-event callbacks by the request's litellm_call_id so queued logging work cannot replace the current request's captured messages

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-10-06 10:27:49 +00:00
..
__init__.py test: add __init__.py to new tests/unit packages 2026-09-20 12:36:13 +00:00
test_deployment_affinity_check.py
test_encrypted_content_affinity_check.py fix(router): strip encrypted reasoning the pinned deployment cannot decrypt (#43781) 2026-09-30 09:56:27 -07:00
test_prompt_caching_deployment_check.py test: deflake the JEV classifier select and two router tests that inherited leaked state (#44840) 2026-10-06 10:27:49 +00:00
test_responses_api_deployment_check.py
test_session_id_affinity.py