Skip to content

Commit 1104210

Browse files
committed
Add a cpy check in search_author_id_filled
1 parent 00cf1d8 commit 1104210

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test_module.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,16 @@ def test_search_author_id_filled(self):
264264
self.assertEqual(author['interests'], [])
265265
self.assertEqual(author['public_access']['available'], 0)
266266
self.assertEqual(author['public_access']['not_available'], 0)
267-
self.assertGreaterEqual(author['citedby'], 2067) # TODO: maybe change
267+
self.assertGreaterEqual(author['citedby'], 2090)
268268
self.assertGreaterEqual(len(author['publications']), 218)
269+
cpy = {1986:4, 2011: 137, 2018: 100}
270+
for year, count in cpy.items():
271+
self.assertEqual(author["cites_per_year"][year], count)
269272
pub = author['publications'][1]
270273
self.assertEqual(pub["citedby_url"],
271274
"https://scholar.google.com/scholar?oi=bibs&hl=en&cites=9976400141451962702")
272275

276+
273277
def test_extract_author_id_list(self):
274278
'''
275279
This unit test tests the extraction of the author id field from the html to populate the `author_id` field

0 commit comments

Comments
 (0)