@@ -724,7 +724,7 @@ def test_search_pubs(self):
724724 pubs = list (scholarly .search_pubs ('"naive physics" stability "3d shape"' ))
725725 # Check that the first entry in pubs is the same as pub.
726726 # Checking for quality holds for non-dict entries only.
727- for key in {'author_id' , 'pub_url' , 'pdf_url ' , 'num_citations' }:
727+ for key in {'author_id' , 'pub_url' , 'eprint_url ' , 'num_citations' }:
728728 self .assertEqual (pub [key ], pubs [0 ][key ])
729729 for key in {'title' , 'pub_year' , 'venue' }:
730730 self .assertEqual (pub ['bib' ][key ], pubs [0 ]['bib' ][key ])
@@ -784,7 +784,7 @@ def test_search_pubs_filling_publication_contents(self):
784784 self .assertTrue (f ['bib' ]['publisher' ] == u'The Association for Research in Vision and Ophthalmology' )
785785 self .assertTrue (f ['bib' ]['title' ] == u'Creating correct blur and its effect on accommodation' )
786786 self .assertTrue (f ['pub_url' ] == u'https://jov.arvojournals.org/article.aspx?articleid=2701817' )
787- self .assertTrue (f ['pdf_url ' ] == u'https://jov.arvojournals.org/arvo/content_public/journal/jov/937491/i1534-7362-18-9-1.pdf' )
787+ self .assertTrue (f ['eprint_url ' ] == u'https://jov.arvojournals.org/arvo/content_public/journal/jov/937491/i1534-7362-18-9-1.pdf' )
788788 self .assertTrue (f ['bib' ]['volume' ] == '18' )
789789 self .assertTrue (f ['bib' ]['pub_year' ] == u'2018' )
790790
@@ -801,7 +801,7 @@ def test_related_articles_from_author(self):
801801 # Typically, the same publication is returned as the most related article
802802 same_article = next (related_articles )
803803 self .assertEqual (pub ["pub_url" ], same_article ["pub_url" ])
804- self .assertEqual (pub ["pdf_url " ], same_article ["pdf_url " ])
804+ self .assertEqual (pub ["eprint_url " ], same_article ["eprint_url " ])
805805 for key in {'title' , 'pub_year' }:
806806 self .assertEqual (str (pub ['bib' ][key ]), (same_article ['bib' ][key ]))
807807
@@ -820,7 +820,7 @@ def test_related_articles_from_publication(self):
820820 related_articles = scholarly .get_related_articles (pub )
821821 # Typically, the same publication is returned as the most related article
822822 same_article = next (related_articles )
823- for key in {'author_id' , 'pub_url' , 'pdf_url ' , 'num_citations' }:
823+ for key in {'author_id' , 'pub_url' , 'eprint_url ' , 'num_citations' }:
824824 self .assertEqual (pub [key ], same_article [key ])
825825 for key in {'title' , 'pub_year' }:
826826 self .assertEqual (pub ['bib' ][key ], same_article ['bib' ][key ])
0 commit comments