mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-15 14:21:58 +00:00
The _resolve_jwks_url method checks response.status_code != 200, but MagicMock returns a MagicMock object for status_code which is always truthy (!= 200). Explicitly set mock_response.status_code = 200 so the tests exercise the intended code path. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
In total litellm runs 1000+ tests
[02/20/2025] Update:
To make it easier to contribute and map what behavior is tested,
we've started mapping the litellm directory in tests/test_litellm
This folder can only run mock tests.