feat: replace pytest-vcr by pytest-recording

1. pytest-vcr does not support httpx - which LiteLLM uses for streaming responses.
2. pytest-vcr is no longer maintained, last commit 6 years ago :fist::skin-tone-4:
3. pytest-recording supports modern request libraries (including httpx) and actively maintained
This commit is contained in:
Lucas Gomide
2025-04-16 16:07:29 -03:00
parent ad02b54fe1
commit 156d201510
15 changed files with 156 additions and 358 deletions

View File

@@ -2,6 +2,7 @@ import os
from time import sleep
from unittest.mock import MagicMock, patch
import litellm
import pytest
from pydantic import BaseModel