Skip to content

Commit

Permalink
Reformatted
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Sep 26, 2024
1 parent 9ae9adc commit fd68077
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion rialto_airflow/harvest/openalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ def dois_from_orcid(orcid: str, limit=None):
return list(dois)



def publications_csv(dois: list, csv_file: str) -> None:
"""
Get publication records for a list of DOIs and create a CSV file.
Expand Down
2 changes: 1 addition & 1 deletion test/harvest/test_openalex.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_publications_from_dois():

# look up the publication metadata for them
pubs = list(openalex.publications_from_dois(dois))

# >= is used because sometimes there can be multiple works for a DOI!
assert len(pubs) >= 231, "should paginate (page size=200)"
assert set(openalex.FIELDS) == set(pubs[0].keys()), "All fields accounted for."
Expand Down

0 comments on commit fd68077

Please sign in to comment.