mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 16:48:30 +00:00
fix: use absolute path for VCR cassettes directory
This commit is contained in:
@@ -161,8 +161,10 @@ def mock_opentelemetry_components():
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def vcr_config(request) -> dict:
|
||||
test_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
cassette_dir = os.path.join(test_dir, "cassettes")
|
||||
return {
|
||||
"cassette_library_dir": "cassettes",
|
||||
"cassette_library_dir": cassette_dir,
|
||||
"record_mode": "new_episodes",
|
||||
"filter_headers": [("authorization", "AUTHORIZATION-XXX")],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user