From ab1f7b1fb8832a68ebbf03112a793b7707545c7b Mon Sep 17 00:00:00 2001 From: Yujong Lee Date: Sat, 29 Aug 2026 16:28:58 -0700 Subject: [PATCH] fix(tests): satisfy strict ruff checks --- .../test_litellm/proxy/common_utils/test_user_api_key_cache.py | 2 +- tests/test_litellm/test__fixture_recorder.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",