mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
test(router): type the load-warning test's caplog and router
This commit is contained in:
parent
b2a50dffb8
commit
143a7fc910
1 changed files with 2 additions and 2 deletions
|
|
@ -31368,9 +31368,9 @@ def test_router_keeps_supported_fallback_shapes(
|
|||
assert router.fallbacks == expected_fallbacks
|
||||
|
||||
|
||||
def test_router_warns_when_a_deployment_enforces_endpoints_without_a_list(caplog):
|
||||
def test_router_warns_when_a_deployment_enforces_endpoints_without_a_list(caplog: pytest.LogCaptureFixture) -> None:
|
||||
with caplog.at_level(logging.WARNING, logger="LiteLLM Router"):
|
||||
router = Router(
|
||||
router: Final = Router(
|
||||
model_list=[
|
||||
{
|
||||
"model_name": "embed-from-config",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue