mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
test(proxy): add pyright and test-quality suppressions for router resilience tests
This commit is contained in:
parent
07878a5ca6
commit
a1577f4693
1 changed files with 4 additions and 4 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue