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 389082b commit fb47eadCopy full SHA for fb47ead
test_module.py
@@ -574,6 +574,15 @@ def test_cites_per_year(self):
574
for year, count in cpy.items():
575
self.assertEqual(author['cites_per_year'][year], count)
576
577
+ def test_redirect(self):
578
+ """Test that we can handle redirects when the scholar_id is approximate.
579
+ """
580
+ author = scholarly.search_author_id("oMaIg8sAAAAJ")
581
+ self.assertEqual(author["scholar_id"], "PEJ42J0AAAAJ")
582
+ scholarly.fill(author, sections=["basics"])
583
+ self.assertEqual(author["name"], "Kiran Bhatia")
584
+ self.assertGreaterEqual(author["citedby"], 135)
585
+
586
class TestScholarlyWithProxy(unittest.TestCase):
587
@classmethod
588
def setUpClass(cls):
0 commit comments