Skip to content

Commit

Permalink
Fixing absolute vs relative cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Sep 25, 2024
1 parent 6ea52b8 commit e81a001
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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),
}


Expand Down

0 comments on commit e81a001

Please sign in to comment.