mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-25 05:54:53 +00:00
test(router): annotate the fallback regression test's locals as Final
This commit is contained in:
parent
14d0136f4e
commit
9c1919a327
1 changed files with 2 additions and 2 deletions
|
|
@ -2372,7 +2372,7 @@ def test_update_settings_model_group_alias_drops_cached_group_info():
|
|||
async def test_update_settings_fallback_rule_of_every_kind_is_used_on_its_error(
|
||||
fallback_kind: str, mock_testing_param: str
|
||||
):
|
||||
router = Router(
|
||||
router: Final = Router(
|
||||
model_list=[
|
||||
{
|
||||
"model_name": "primary",
|
||||
|
|
@ -2388,7 +2388,7 @@ async def test_update_settings_fallback_rule_of_every_kind_is_used_on_its_error(
|
|||
|
||||
router.update_settings(**{fallback_kind: [{"primary": ["backup"]}]})
|
||||
|
||||
response = await router.acompletion(
|
||||
response: Final = await router.acompletion(
|
||||
model="primary", messages=[{"role": "user", "content": "hi"}], **{mock_testing_param: True}
|
||||
)
|
||||
assert response.choices[0].message.content == "backup answered"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue