Spaces:
Configuration error
Configuration error
from unittest.mock import AsyncMock, patch | |
import pytest | |
from litellm.proxy._types import LiteLLM_TeamTable, LiteLLM_UserTable, Member | |
from litellm.proxy.auth.handle_jwt import JWTAuthManager | |
def test_get_team_models_for_all_models_and_team_only_models(): | |
from litellm.proxy.auth.model_checks import get_team_models | |
team_models = ["all-proxy-models", "team-only-model", "team-only-model-2"] | |
proxy_model_list = ["model1", "model2", "model3"] | |
model_access_groups = {} | |
include_model_access_groups = False | |
result = get_team_models( | |
team_models, proxy_model_list, model_access_groups, include_model_access_groups | |
) | |
combined_models = team_models + proxy_model_list | |
assert set(result) == set(combined_models) | |