Files
litellm/tests/proxy_unit_tests
Julio Quinteros Pro 740cdc5c20 fix: use real State object in mock_request to fix _safe_get_request_headers
The _safe_get_request_headers caching (commit e7175a52) uses
request.state._cached_headers. With Mock(spec=Request), getattr on
state returns a Mock (truthy), causing RedactedDict to receive a Mock
instead of a dict. Using a real starlette State object fixes this.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 20:05:20 -03:00
..
2025-10-25 10:19:24 -07:00
2025-10-25 10:19:24 -07:00
2025-07-27 09:52:22 -07:00
2025-10-25 10:19:24 -07:00
2026-02-28 09:46:35 -08:00