Skip to content

Commit

Permalink
Restore assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
lwrubel committed Jul 8, 2024
1 parent 05ab9e2 commit bb28524
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/harvest/test_openalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def test_publications_from_dois():
pubs = list(openalex.publications_from_dois(dois))
assert len(pubs) == 231, "should paginate (page size=200)"
assert len(pubs) == len(set([pub["doi"] for pub in pubs])), "DOIs are unique"
assert set(openalex.FIELDS) == set(pubs[0].keys()), "All fields accounted for."
assert len(pubs[0].keys()) == 51, "first publication has 51 columns"
assert len(pubs[1].keys()) == 51, "second publication has 51 columns"

Expand Down

0 comments on commit bb28524

Please sign in to comment.