litellm/tests/test_litellm/llms/openai_like
Yuneng Jiang 0ec619e7d1
test: close mutation-testing gaps in container, skills and openai-like config factories
Mutation testing surfaced three factory functions whose tests ran against them
but asserted nothing that a mutation could break, so every planted bug survived.

- litellm/llms/litellm_proxy/skills/code_execution.py: the OpenAI and Anthropic
  tool schemas were unpinned (the Anthropic one was not reached by any test at
  all) and the handler's default fallbacks were unchecked
- litellm/containers/endpoint_factory.py: the endpoints.json contract, the
  generated sync/async function set and the response-type mapping were unpinned
- litellm/llms/openai_like/dynamic_config.py: the generated Responses API config
  class had no coverage of auth header, URL resolution or the store override

The openai_like tests clear _responses_config_cache around each test. Without
that, the module-level cache hands back a class built before the mutation and
the tests pass against mutated code.

Verified by re-running mutmut per scope:
  llms/litellm_proxy  45.2% -> 62.8%  (70 mutants newly killed)
  containers          36.8% -> 84.3%  (45 mutants newly killed)
  llms/openai_like    55.7% -> 66.9%  (34 mutants newly killed)
2026-08-28 09:28:14 -07:00
..
chat fix: Resolve pytest module name collision for test_transformation.py files (#16661) 2025-11-14 16:50:40 -08:00
embedding style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
messages fix(anthropic): override custom_llm_provider in provider config subclasses so capability probes use the right namespace 2026-07-11 12:15:59 -07:00
responses style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
__init__.py [Feat] Allow adding OpenAI compatible chat providers using .json + add public ai provider (#17448) 2025-12-04 17:59:25 -08:00
test_abliteration_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_assemblyai_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_charity_engine.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_cognition_provider.py fix(cognition): price swe-1.7 at the standard tier, add swe-1.7-lightning 2026-08-20 19:41:12 -07:00
test_dynamic_config.py test: close mutation-testing gaps in container, skills and openai-like config factories 2026-08-28 09:28:14 -07:00
test_empiriolabs_provider.py test: run the 30 test files stranded in the second mirror (#37595) 2026-08-20 10:59:43 -07:00
test_json_providers.py chore: litellm oss staging (#30968) 2026-06-23 07:31:44 -07:00
test_libertai_provider.py chore(oss): litellm oss staging 150626 (#30463) 2026-06-16 12:06:41 -07:00
test_meta_provider.py feat: add Meta Model API provider and muse-spark-1.1 (day-0) (#32701) 2026-07-09 20:45:27 -07:00
test_pinstripes_provider.py chore: litellm oss staging (#30745) 2026-06-18 13:55:35 -07:00
test_scx_ai_provider.py fix(scx-ai): correct the temperature ceiling to match the endpoint 2026-08-07 11:37:38 +10:00
test_tensormesh_provider.py chore(oss): litellm oss staging 120626 (#30292) 2026-06-12 09:49:25 -07:00
test_xiaomi_mimo.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00