mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
test(proxy): expect the unsupported cache type error from _init_cache
The test pinned the old fallthrough, where an unknown type left the cache without a backend and the proxy hit an AttributeError reading it
This commit is contained in:
parent
c618a0eddb
commit
118081ba66
1 changed files with 1 additions and 1 deletions
|
|
@ -1656,7 +1656,7 @@ def test_ProxyConfig__init_cache_sets_litellm_cache(monkeypatch):
|
|||
|
||||
def test_ProxyConfig__init_cache_invalid_params_raises():
|
||||
pc = ProxyConfig()
|
||||
with pytest.raises(AttributeError):
|
||||
with pytest.raises(ValueError, match="Unsupported cache type 'this-cache-type-does-not-exist'"):
|
||||
pc._init_cache(cache_params={"type": "this-cache-type-does-not-exist"})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue