@@ -724,7 +724,7 @@ def test_search_pubs(self):
724
724
pubs = list (scholarly .search_pubs ('"naive physics" stability "3d shape"' ))
725
725
# Check that the first entry in pubs is the same as pub.
726
726
# Checking for quality holds for non-dict entries only.
727
- for key in {'author_id' , 'pub_url' , 'num_citations' }:
727
+ for key in {'author_id' , 'pub_url' , 'eprint_url' , ' num_citations' }:
728
728
self .assertEqual (pub [key ], pubs [0 ][key ])
729
729
for key in {'title' , 'pub_year' , 'venue' }:
730
730
self .assertEqual (pub ['bib' ][key ], pubs [0 ]['bib' ][key ])
@@ -784,6 +784,7 @@ def test_search_pubs_filling_publication_contents(self):
784
784
self .assertTrue (f ['bib' ]['publisher' ] == u'The Association for Research in Vision and Ophthalmology' )
785
785
self .assertTrue (f ['bib' ]['title' ] == u'Creating correct blur and its effect on accommodation' )
786
786
self .assertTrue (f ['pub_url' ] == u'https://jov.arvojournals.org/article.aspx?articleid=2701817' )
787
+ self .assertTrue (f ['eprint_url' ] == u'https://jov.arvojournals.org/arvo/content_public/journal/jov/937491/i1534-7362-18-9-1.pdf' )
787
788
self .assertTrue (f ['bib' ]['volume' ] == '18' )
788
789
self .assertTrue (f ['bib' ]['pub_year' ] == u'2018' )
789
790
@@ -800,6 +801,7 @@ def test_related_articles_from_author(self):
800
801
# Typically, the same publication is returned as the most related article
801
802
same_article = next (related_articles )
802
803
self .assertEqual (pub ["pub_url" ], same_article ["pub_url" ])
804
+ self .assertEqual (pub ["eprint_url" ], same_article ["eprint_url" ])
803
805
for key in {'title' , 'pub_year' }:
804
806
self .assertEqual (str (pub ['bib' ][key ]), (same_article ['bib' ][key ]))
805
807
@@ -818,7 +820,7 @@ def test_related_articles_from_publication(self):
818
820
related_articles = scholarly .get_related_articles (pub )
819
821
# Typically, the same publication is returned as the most related article
820
822
same_article = next (related_articles )
821
- for key in {'author_id' , 'pub_url' , 'num_citations' }:
823
+ for key in {'author_id' , 'pub_url' , 'eprint_url' , ' num_citations' }:
822
824
self .assertEqual (pub [key ], same_article [key ])
823
825
for key in {'title' , 'pub_year' }:
824
826
self .assertEqual (pub ['bib' ][key ], same_article ['bib' ][key ])
0 commit comments