litellm/tests/test_litellm/proxy/client
mateo-berri b554d79914 fix(cli): resolve Claude Code's settings file through CLAUDE_CONFIG_DIR
Claude Code reads settings.json from CLAUDE_CONFIG_DIR when it is set,
while lite login --config-claude wrote to ~/.claude/settings.json and
lite claude checked that same file for its apiKeyHelper. With the
override set, lite could drop ANTHROPIC_AUTH_TOKEN because the helper
lives in a file Claude Code never reads, leaving it with no key at all.

claude_settings_path(environ) now picks the file the way Claude Code
does, and both commands go through it. The CLI test directory gets an
autouse conftest that isolates HOME, USERPROFILE, and CLAUDE_CONFIG_DIR
per test and fails any test that writes the developer's real
settings.json, restoring it first.
2026-09-09 18:01:11 -07:00
..
cli fix(cli): resolve Claude Code's settings file through CLAUDE_CONFIG_DIR 2026-09-09 18:01:11 -07:00
conftest.py fix(proxy): give every requests call a timeout so a silent server cannot hang the caller 2026-08-25 10:12:33 -07:00
test_chat.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_client.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_credentials.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_http_client.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_http_commands.py test: drop the cwd-relative sys.path.insert calls from the test suite (#37802) 2026-08-22 09:25:58 -07:00
test_keys.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_model_groups.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_models.py fix(proxy): give the remaining CLI clients a request timeout 2026-08-29 13:32:39 -07:00
test_teams.py fix(proxy): give every requests call a timeout so a silent server cannot hang the caller 2026-08-25 10:12:33 -07:00
test_users.py fix(proxy): give every requests call a timeout so a silent server cannot hang the caller 2026-08-25 10:12:33 -07:00