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]

[Fix] Batches Tests: Remove VCR Auto-Marker

Yuneng Jianga43dc9f0b157
diff --git a/tests/batches_tests/conftest.py b/tests/batches_tests/conftest.py
index e6e31546a82..ecb606b2cf3 100644
--- a/tests/batches_tests/conftest.py
+++ b/tests/batches_tests/conftest.py
@@ -1,7 +1,6 @@
# conftest.py
import asyncio
-import importlib
import os
import sys
@@ -12,16 +11,6 @@ sys.path.insert(
) # Adds the parent directory to the system path
import litellm # noqa: E402,F401
-from tests._vcr_conftest_common import ( # noqa: E402
- VerboseReporterState,
- apply_vcr_auto_marker_to_items,
- record_vcr_outcome,
- register_persister_if_enabled,
- vcr_config_dict,
-)
-
-_verbose_state = VerboseReporterState()
-
@pytest.fixture(scope="session")
def event_loop():
@@ -31,37 +20,3 @@ def event_loop():
loop = asyncio.new_event_loop()
yield loop
loop.close()
-
-
[email protected](scope="module")
-def vcr_config():
- return vcr_config_dict()
-
-
-def pytest_recording_configure(config, vcr):
- register_persister_if_enabled(vcr)
-
-
[email protected](hookwrapper=True)
-def pytest_runtest_makereport(item, call):
- outcome = yield
- rep = outcome.get_result()
- setattr(item, f"rep_{rep.when}", rep)
-
-
[email protected](autouse=True)
-def _vcr_outcome_gate(request, vcr):
- yield
- record_vcr_outcome(request, vcr)
-
-
-def pytest_configure(config):
- _verbose_state.remember_pluginmanager(config)
-
-
-def pytest_runtest_logreport(report):
- _verbose_state.maybe_emit_verdict(report)
-
-
-def pytest_collection_modifyitems(config, items):
- apply_vcr_auto_marker_to_items(items)