From 4c23d0d2c8eb757f53a347708e5c35ea1a2330f0 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 15 Sep 2026 19:46:48 +0000 Subject: [PATCH] test(proxy): update DB row fixtures for created timestamps Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../anthropic/test_anthropic_prompt_cache_prediction.py | 6 +++++- .../management_endpoints/test_access_group_management.py | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test_litellm/llms/anthropic/test_anthropic_prompt_cache_prediction.py b/tests/test_litellm/llms/anthropic/test_anthropic_prompt_cache_prediction.py index 2b36866a1a0..ccba1a154d0 100644 --- a/tests/test_litellm/llms/anthropic/test_anthropic_prompt_cache_prediction.py +++ b/tests/test_litellm/llms/anthropic/test_anthropic_prompt_cache_prediction.py @@ -149,7 +149,11 @@ async def test_environment_credential_matches_native_count_and_observed_scope( if source == "database": monkeypatch.setattr(proxy_server, "llm_router", router) assert proxy_server.ProxyConfig()._add_deployment([SimpleNamespace( - model_id=_DEPLOYMENT, model_name="test-native", model_info={}, litellm_params=dict(params), + model_id=_DEPLOYMENT, + model_name="test-native", + model_info={}, + litellm_params=dict(params), + created_at=None, )]) == 1 deployment: Final = router.get_deployment(_DEPLOYMENT) assert deployment is not None diff --git a/tests/test_litellm/proxy/management_endpoints/test_access_group_management.py b/tests/test_litellm/proxy/management_endpoints/test_access_group_management.py index a43f20da329..d97d790dd62 100644 --- a/tests/test_litellm/proxy/management_endpoints/test_access_group_management.py +++ b/tests/test_litellm/proxy/management_endpoints/test_access_group_management.py @@ -501,6 +501,7 @@ async def test_create_access_group_read_through_recovers_model_created_on_siblin litellm_params={"model": "openai/gpt-4o", "api_key": "fake", "mock_response": "hi"}, model_info={}, blocked=False, + created_at=None, ) mock_router = Router(