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

Fix FetcherTests #11644

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Fix FetcherTests #11644

merged 2 commits into from
Aug 19, 2024

Conversation

koppor
Copy link
Member

@koppor koppor commented Aug 18, 2024

I went through the fetcher test results at #11643 - they all should come from other strings returned. This PR fixes it.

Mandatory checks

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • Tests created for changes (if applicable)
  • Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

@koppor koppor enabled auto-merge August 18, 2024 22:51
@koppor koppor added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Aug 18, 2024
@@ -28,7 +28,7 @@ void setUp() {
@Test
void findByDOI() throws IOException {
entry.setField(StandardField.DOI, "10.1038/nature12373");
assertEquals(Optional.of(new URL("https://dash.harvard.edu/bitstream/1/12285462/1/Nanometer-Scale%20Thermometry.pdf")), finder.findFullText(entry));
assertEquals(Optional.of(new URL("https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4221854")), finder.findFullText(entry));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong, it should return the fulltext pdf

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should revert this then and get the other changes in 😅

@subhramit subhramit added fetcher tests Related to tests labels Aug 19, 2024
Copy link
Contributor

github-actions bot commented Aug 19, 2024

The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build.

@koppor koppor added this pull request to the merge queue Aug 19, 2024
Merged via the queue into main with commit b41593a Aug 19, 2024
21 of 22 checks passed
@koppor koppor deleted the fix-fetcher-tests2 branch August 19, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetcher status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers tests Related to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants