mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-02 10:21:52 +00:00
The test_keys_delete_error_handling test was failing with: - ConnectionError when the mock wasn't properly applied - The test was checking str(result.exception) without first verifying exception exists This fix adds an explicit check that result.exception is not None before attempting to convert it to string, preventing potential AttributeError and making the test more robust.
Testing for litellm/
This directory 1:1 maps the the litellm/ directory, and can only contain mocked tests.
The point of this is to:
- Increase test coverage of
litellm/ - 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.pymaps tolitellm/proxy/caching_routes.pytest_<filename>.pymaps tolitellm/<filename>.py