From e81a00191598bc78268b304914d6fd5342f52757 Mon Sep 17 00:00:00 2001 From: James Braza Date: Wed, 25 Sep 2024 13:04:10 -0700 Subject: [PATCH] Fixing absolute vs relative cassettes --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 10bf6db3..b4f42c1e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -17,7 +17,8 @@ from paperqa.types import Answer from paperqa.utils import setup_default_logs -PAPER_DIRECTORY = Path(__file__).parent +TESTS_DIR = Path(__file__).parent +CASSETTES_DIR = TESTS_DIR / "cassettes" @pytest.fixture(autouse=True, scope="session") @@ -46,7 +47,7 @@ def fixture_vcr_config() -> dict[str, Any]: ], "match_on": ["method", "host", "path", "query"], "allow_playback_repeats": True, - "cassette_library_dir": "tests/cassettes", + "cassette_library_dir": str(CASSETTES_DIR), }