mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-04 17:08:48 +00:00
c7fe400d4d
Regular team members could not see service accounts belonging to their team. Additionally, former team members could still see service accounts they created via the created_by filter after leaving the team. - Add get_member_team_ids() to retrieve all teams a user belongs to - Regular members now see team service accounts (user_id=NULL) but not other members' personal keys - Scope created_by filter to the user's current team memberships - Add 7 unit tests covering the new visibility rules
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