We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cabc51 commit e49ef45Copy full SHA for e49ef45
test_module.py
@@ -841,6 +841,17 @@ def test_citedby_1k_scholar(self):
841
pub = next(pubs)
842
self.check_citedby_1k(pub)
843
844
+ def test_citedby(self):
845
+ """Test that we can search citations of a paper from author's profile.
846
+ """
847
+ # Retrieve the author's data, fill-in, and print
848
+ search_query = scholarly.search_author('Steven A Cholewiak')
849
+ author = scholarly.fill(next(search_query))
850
+ pub = scholarly.fill(author['publications'][0])
851
+
852
+ # Which papers cited that publication?
853
+ top10_citations = [citation for num, citation in enumerate(scholarly.citedby(pub)) if num<10]
854
+ self.assertEqual(len(top10_citations), 10)
855
856
if __name__ == '__main__':
857
unittest.main()
0 commit comments