Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing tests/tests/cassettes issue by using absolute path #482

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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