mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
fix(tests): satisfy strict ruff checks
This commit is contained in:
parent
64be0c18b9
commit
ab1f7b1fb8
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ class FakeRedisCache(RedisCache):
|
|||
Records the ``ttl`` kwarg DualCache forwards on each Redis write for tests.
|
||||
"""
|
||||
|
||||
def __init__(self): # noqa: super().__init__ skipped intentionally
|
||||
def __init__(self):
|
||||
self._store: dict[str, str] = {}
|
||||
self.last_ttl: Any = None
|
||||
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ def test_streaming_response_records_and_replays_chunks(tmp_path: Path) -> None:
|
|||
|
||||
|
||||
def test_stream_response_model_rejects_buffered_body() -> None:
|
||||
with pytest.raises(ValueError):
|
||||
with pytest.raises(ValueError, match="Extra inputs are not permitted"):
|
||||
RecordedHttpStreamResponse.model_validate(
|
||||
{
|
||||
"kind": "http_stream",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue