test(proxy): add pyright and test-quality suppressions for router resilience tests

This commit is contained in:
Ayush Arora 2026-09-12 02:40:45 +05:30
parent 07878a5ca6
commit a1577f4693

View file

@ -338,10 +338,10 @@ class TestDeleteDeploymentKeepsPluginConfigModels:
with (
patch.object(proxy_config, "get_config", new_callable=AsyncMock, return_value=updated_config),
patch("litellm.proxy.proxy_server.llm_router", router), # test-quality-ok: proxy router test mock
patch("litellm.proxy.proxy_server.user_config_file_path", str(cfg_file)), # test-quality-ok: proxy router test mock
patch("litellm.proxy.proxy_server.master_key", "sk-test"), # test-quality-ok: proxy router test mock
patch("litellm.proxy.proxy_server.premium_user", False), # test-quality-ok: proxy router test mock
patch("litellm.proxy.proxy_server.llm_router", router), # test-quality-ok: proxy router test mock # pyright: ignore[reportOptionalMemberAccess, reportUnnecessaryIsInstance]
patch("litellm.proxy.proxy_server.user_config_file_path", str(cfg_file)), # test-quality-ok: proxy router test mock # pyright: ignore[reportOptionalMemberAccess, reportUnnecessaryIsInstance]
patch("litellm.proxy.proxy_server.master_key", "sk-test"), # test-quality-ok: proxy router test mock # pyright: ignore[reportOptionalMemberAccess, reportUnnecessaryIsInstance]
patch("litellm.proxy.proxy_server.premium_user", False), # test-quality-ok: proxy router test mock # pyright: ignore[reportOptionalMemberAccess, reportUnnecessaryIsInstance]
):
await proxy_config._update_llm_router(new_models=[], proxy_logging_obj=MagicMock())