mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-20 00:11:50 +00:00
test(proxy): pass the new pass-through argument to the side-effect dispatcher
_apply_general_settings_side_effects grew a fourth argument when the reload started comparing the resolved pass-through list, and this dispatch test calls it positionally, so it failed with a TypeError.
This commit is contained in:
parent
460f336d8a
commit
2f3e4fa724
1 changed files with 3 additions and 1 deletions
|
|
@ -3807,13 +3807,15 @@ async def test_ProxyConfig__update_general_settings_dispatches_every_side_effect
|
|||
for name, handler in handlers:
|
||||
monkeypatch.setattr(pc, name, handler)
|
||||
|
||||
await pc._apply_general_settings_side_effects({}, False, ())
|
||||
await pc._apply_general_settings_side_effects({}, False, (), None)
|
||||
|
||||
for name, handler in handlers:
|
||||
if name == "_apply_cache_size_setting":
|
||||
handler.assert_awaited_once_with({}, cache_size_was_db=False)
|
||||
elif name == "_apply_retention_settings":
|
||||
handler.assert_awaited_once_with({}, previous_retention_values=())
|
||||
elif name == "_apply_pass_through_settings":
|
||||
handler.assert_awaited_once_with({}, previous_endpoints=None)
|
||||
else:
|
||||
handler.assert_awaited_once_with({})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue