litellm/tests/test_litellm
Ishaan Jaff b9ffa98c55
[Feat] Proxy CLI: Create a python method to login using litellm proxy (#14782)
* fix: cli auth with SSO okta

* fix: add LITTELM_CLI_SERVICE_ACCOUNT_NAME

* fix: get_litellm_cli_user_api_key_auth

* use existing_key CLI

* fix: use existing key

* test auth commands

* test_cli_sso_callback_regenerate_vs_create_flow

* feat: add CLI Token Utilities

* fix: get_stored_api_key

* move file

* fix: get_valid_models

* fix config.yaml

* TestCLITokenUtils

* TestGetValidModelsWithCLI

* fix: tie user id to keys created through CLI

* fix: add teams interface to CLI

* add /keys/update to the list client commands

* fix /sso/cli/poll to return the user_id

* fix: working TeamsManagementClient

* fix CLI Login command

* fixes for auth

* Potential fix for code scanning alert no. 3400: Clear-text logging of sensitive information

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* ruff fix

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2025-09-22 21:28:38 -07:00
..
caching
completion_extras/litellm_responses_transformation Revert "Merge pull request #12865 from aholmberg/holmberg/default-reasoning" 2025-08-30 13:07:33 -07:00
enterprise/enterprise_callbacks
experimental_mcp_client [Fixes] Bug fixes to using LiteLLM MCP Gateway (#14392) 2025-09-10 19:12:11 -07:00
google_genai
integrations Merge branch 'litellm_contributor_prs_09_18_2025_p2' into litellm_dev_09_17_2025_p2_v2 2025-09-18 19:50:55 -07:00
litellm_core_utils [Feat] Proxy CLI: Create a python method to login using litellm proxy (#14782) 2025-09-22 21:28:38 -07:00
llms Merge branch 'main' into wandb-inference 2025-09-23 00:14:11 +05:30
passthrough
proxy feat: enable custom fields in mcp_info configuration (#14794) 2025-09-22 21:15:35 -07:00
responses test: add a testcase for cached_tokens 2025-09-18 18:40:11 +08:00
router_strategy fix: Prevent AttributeError for _get_tags_from_request_kwargs (#14735) 2025-09-19 15:21:02 -07:00
router_utils test 2025-09-06 16:38:43 -07:00
secret_managers
types
vector_stores
__init__.py
conftest.py
log.txt
readme.md
test_constants.py
test_cost_calculation_log_level.py
test_cost_calculator.py test: update unit test 2025-09-17 14:23:13 -07:00
test_groq_streaming_encoding.py
test_logging.py
test_lowest_latency_zero_tokens.py
test_main.py Apply Black formatting and fix Ruff issues 2025-09-22 04:46:08 +05:30
test_router.py
test_system_message_format_bug.py
test_utils.py [Feat] Proxy CLI: Create a python method to login using litellm proxy (#14782) 2025-09-22 21:28:38 -07:00

Testing for litellm/

This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.

The point of this is to:

  1. Increase test coverage of litellm/
  2. Make it easy for contributors to add tests for the litellm/ package and easily run tests without needing LLM API keys.

File name conventions

  • litellm/proxy/test_caching_routes.py maps to litellm/proxy/caching_routes.py
  • test_<filename>.py maps to litellm/<filename>.py