-
Couldn't load subscription status.
- Fork 779
Restored UnpaywallProvider by updating expected response
#1057
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR restores the UnpaywallProvider functionality by updating expected responses to account for API deprecations documented at https://unpaywall.org/data-format. The main changes involve updating test fixtures and test data to reflect the new API response format and different DOI/publication information.
- Updates test data to use a different paper with newer publication details (2025 vs 2024)
- Reorganizes API call sequences in test cassettes to reflect updated Unpaywall responses
- Updates timestamps and response headers in HTTP cassettes to current dates
Reviewed Changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/test_clients.py | Updates test assertions with new paper metadata including DOI, journal, and citation information |
| tests/cassettes/test_doi_search[paper_attributes4].yaml | Reorders API calls and updates response timestamps |
| tests/cassettes/test_doi_search[paper_attributes3].yaml | Updates citation counts and API response timestamps |
| tests/cassettes/test_doi_search[paper_attributes2].yaml | Adds new Unpaywall API call and updates response format |
| tests/cassettes/test_doi_search[paper_attributes1].yaml | Adds Unpaywall API response and updates metadata format |
197e70c to
506fd43
Compare
Accounting for deprecations from https://unpaywall.org/data-format
Also, updating for "High-throughput screening of human genetic variants by pooled prime editing" having a new 'latest' DOI.