mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-26 18:34:23 +01:00
22 lines
581 B
Python
22 lines
581 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
from tests.vcr.vcr_filter import before_record_request, before_record_response
|
|
|
|
|
|
@pytest.fixture(scope="session")
|
|
def vcr_config():
|
|
# this fixture is called by the pytest-recording vcr decorator.
|
|
return {
|
|
"record_mode": "new_episodes",
|
|
"before_record_request": before_record_request,
|
|
"before_record_response": before_record_response,
|
|
"filter_headers": [
|
|
"Authorization",
|
|
"X-OpenAI-Client-User-Agent",
|
|
"User-Agent",
|
|
],
|
|
"match_on": ["method", "uri", "body"],
|
|
}
|