mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 21:46:22 +00:00
28a0c61c51
Add setup_method and teardown_method to clean up Google/Vertex AI environment variables that may be left by previous tests. Previous tests may set GOOGLE_APPLICATION_CREDENTIALS or other Vertex environment variables and not clean them up, causing this test to attempt real Google authentication instead of using mocks. This fix: - Saves and clears Google/Vertex env vars in setup_method - Restores them in teardown_method - Prevents "DefaultCredentialsError" in CI when run with other tests Test passes in isolation but fails in CI due to test ordering. This is another test isolation issue, NOT related to PR #21217. Co-Authored-By: Claude Sonnet 4.5 <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.