Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

remove conftest patch. TODO: make a different PR for this

harish87613108039c853
diff --git a/tests/test_litellm/proxy/conftest.py b/tests/test_litellm/proxy/conftest.py
index d30859706eb..a5d8fd17076 100644
--- a/tests/test_litellm/proxy/conftest.py
+++ b/tests/test_litellm/proxy/conftest.py
@@ -13,31 +13,6 @@ import pytest
import yaml
from fastapi.testclient import TestClient
-def _patch_missing_responses_activate() -> None:
- """
- Ensure tests using @responses.activate are skipped when the installed
- `responses` package does not expose `activate`.
- """
- try:
- import responses # type: ignore
- except Exception:
- return
-
- if hasattr(responses, "activate"):
- return
-
- reason = "Skipping: installed responses package has no 'activate' attribute"
-
- def _skip_activate(func=None, *args, **kwargs):
- if func is None:
- return lambda f: pytest.mark.skip(reason=reason)(f)
- return pytest.mark.skip(reason=reason)(func)
-
- setattr(responses, "activate", _skip_activate)
-
-
-_patch_missing_responses_activate()
-
def build_cache_config(enable_cache: bool = True) -> Optional[Dict]:
"""
Build Redis cache configuration from environment variables.