litellm/tests/test_litellm/containers
shin-bot-litellm df299d3193
fix(tests): Fix flaky container and scientific notation tests (#20650)
* fix(tests): Mock async_container_create_handler for async router test

The test was mocking container_create_handler (sync), but
router.acreate_container uses _is_async=True which calls
async_container_create_handler. This caused the test to hit
the real OpenAI API.

Fixed by using AsyncMock on async_container_create_handler.

* fix(tests): Use uuid for unique model name in scientific notation test

The test was using a static "unique" model name which could cause
conflicts when running tests in parallel (-n 16 in CI). Using uuid
ensures truly unique names to prevent test pollution.

---------

Co-authored-by: Shin <shin@openclaw.ai>
2026-02-07 09:57:08 -08:00
..
__init__.py Add E2E Container API Support (#16136) 2025-11-01 14:03:51 -07:00
test_container_api.py fix(tests): Fix flaky container and scientific notation tests (#20650) 2026-02-07 09:57:08 -08:00
test_container_integration.py fix: make HTTPHandler mockable in OIDC secret manager tests (#19803) 2026-01-26 11:00:42 -08:00
test_container_regional_api_base.py [Fix] Containers API - Allow routing to regional endpoints (#19118) 2026-01-14 17:28:18 -08:00
test_container_transformation.py Add E2E Container API Support (#16136) 2025-11-01 14:03:51 -07:00
test_container_utils.py Add E2E Container API Support (#16136) 2025-11-01 14:03:51 -07:00