Skip to content

Commit

Permalink
Fixed a broken test and removed a print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
koddas committed Jul 29, 2024
1 parent 1f87f0f commit a5a81bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion paper2remarkable/providers/diva.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def _get_doc_url(self, abs_url):
soup = bs4.BeautifulSoup(page, "html.parser")

pdf_url = soup.find("meta", {"name": "citation_pdf_url"})
print(pdf_url)
if pdf_url is None:
logger.warning(
"Couldn't find the fulltext URL"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ def test_diva_2(self):
# Testing absolute URLs and sanitization of filenames
prov = DiVA(upload=False, verbose=VERBOSE)
url = "https://www.diva-portal.org/smash/record.jsf?pid=diva2%3A1480467"
exp = "Alhussein_-_Privacy_by_Design_Internet_of_Things_managing_privacy_2018.pdf"
exp = "Alhussein_-_Privacy_by_Design_Amp_Internet_of_Things_Managing_Privacy_2018.pdf"
filename = prov.run(url)
self.assertEqual(exp, os.path.basename(filename))

Expand Down

0 comments on commit a5a81bf

Please sign in to comment.