mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-23 17:04:21 +01:00
18 lines
427 B
Python
18 lines
427 B
Python
import pytest
|
|
|
|
from tests.vcr.openai_filter import before_record_request
|
|
|
|
|
|
@pytest.fixture
|
|
def vcr_config():
|
|
# this fixture is called by the pytest-recording vcr decorator.
|
|
return {
|
|
"record_mode": "new_episodes",
|
|
"before_record_request": before_record_request,
|
|
"filter_headers": [
|
|
"authorization",
|
|
"X-OpenAI-Client-User-Agent",
|
|
"User-Agent",
|
|
],
|
|
}
|