litellm/tests/test_litellm/proxy/client/cli
Krrish Dholakia f7fc41c94c fix(cli): surface clean errors instead of raw tracebacks in lite up/down
load_json_or_empty and read_backup both delegate to pydantic's
validate_json, which raises ValidationError on invalid JSON or a
non-object root -- neither up() nor down() caught it, so a corrupt
settings or backup file surfaced an unformatted Python traceback
instead of a clean CLI error. Both now convert to UpError, and down()
(previously uncaught entirely) and up()'s teardown path now handle it.

restore_claude_settings also gained a parent.mkdir guard before
rewriting CLAUDE_SETTINGS_PATH: if ~/.claude/ was removed while `lite
up` was running, the restore would crash before deleting the backup
file, permanently stranding it and breaking every future `lite down`.
2026-07-15 18:23:28 -07:00
..
autoroute fix(cli): surface a clean error on an empty or corrupt autoroute config 2026-07-15 17:44:47 -07:00
__init__.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_agents.py feat(cli): per-agent lite claude / codex / opencode commands that wrap coding agents through the proxy (#29850) 2026-06-10 13:52:26 -07:00
test_auth_commands.py fix(cli): bind lite up's apiKeyHelper to the proxy it was started against 2026-07-15 17:56:39 -07:00
test_credentials_commands.py test fix creds test 2025-07-03 22:01:52 -07:00
test_encryption_commands.py feat(proxy): add AES-256-GCM at-rest credential encryption with versioned format and re-encryption migration (#31215) 2026-06-29 20:14:22 +02:00
test_global_options.py fix: strip trailing slash from --base-url in lite CLI (#32845) 2026-07-10 18:00:00 -07:00
test_keys_commands.py style: run black formatter on files from main merge 2026-04-17 13:02:59 -07:00
test_model_groups_commands.py feat(cli): add lite autoroute to QA complexity-based auto-routing against a real proxy (#33249) 2026-07-15 14:07:52 -07:00
test_models_commands.py sys.path.insert for cli tests 2025-07-03 15:58:49 -07:00
test_up_commands.py fix(cli): surface clean errors instead of raw tracebacks in lite up/down 2026-07-15 18:23:28 -07:00
test_users_commands.py sys.path.insert for cli tests 2025-07-03 15:58:49 -07:00