mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-12 03:06:22 +00:00
a43dc9f0b1
Strip VCR wiring from the batches test conftest. Drops: - import of `_vcr_conftest_common` helpers - the `vcr_config` fixture, `pytest_recording_configure`, `_vcr_outcome_gate`, `pytest_runtest_makereport` - the `apply_vcr_auto_marker_to_items` call in `pytest_collection_modifyitems` - `VerboseReporterState` / its `pytest_configure` / `pytest_runtest_logreport` hooks (purely VCR-verdict plumbing) Why: every test in this directory creates ephemeral OpenAI / Bedrock / vLLM resources whose IDs change per run (file-XXX, batch-XXX, ft-XXX, ...). VCR's path/query/body matchers don't match across runs, so `record_mode="new_episodes"` was silently passing through to the live API and recording many new cassette entries every run. Cassette bloat without replay benefit. Behaviour after this change is identical to running the directory without `CASSETTE_REDIS_URL` set: tests that have keys hit live APIs, tests that don't continue to skip via their existing skipif markers. Conftest now keeps only path setup and the session-scoped `event_loop` fixture.