diff --git a/tests/test_litellm/proxy/common_utils/test_user_api_key_cache.py b/tests/test_litellm/proxy/common_utils/test_user_api_key_cache.py index 33e0d8bf38e..d1f979882ae 100644 --- a/tests/test_litellm/proxy/common_utils/test_user_api_key_cache.py +++ b/tests/test_litellm/proxy/common_utils/test_user_api_key_cache.py @@ -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 diff --git a/tests/test_litellm/test__fixture_recorder.py b/tests/test_litellm/test__fixture_recorder.py index 38f86057abc..dca494b0a22 100644 --- a/tests/test_litellm/test__fixture_recorder.py +++ b/tests/test_litellm/test__fixture_recorder.py @@ -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",