mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-10 19:04:29 +00:00
40edb16fb9
The eager tiktoken tests were clearing all litellm modules from sys.modules and re-importing, creating new module objects with different class identities. This broke unittest.mock.patch for all subsequent tests on the same xdist worker. Running these tests in subprocesses provides perfect isolation. Fixes: test_metadata_passed_to_custom_callback_codex_models, test_oidc_github_success, test_oidc_google_cached, test_oidc_google_failure, test_encrypted_content_affinity_bypasses_rpm_limits, and 5 others. 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.