From fd6807752fa98520cdb0d1640be3fb815279f939 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Thu, 26 Sep 2024 15:49:41 -0400 Subject: [PATCH] Reformatted --- rialto_airflow/harvest/openalex.py | 1 - test/harvest/test_openalex.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rialto_airflow/harvest/openalex.py b/rialto_airflow/harvest/openalex.py index 93917e0..b2f99ec 100644 --- a/rialto_airflow/harvest/openalex.py +++ b/rialto_airflow/harvest/openalex.py @@ -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. diff --git a/test/harvest/test_openalex.py b/test/harvest/test_openalex.py index 9935ee8..1b5e2ba 100644 --- a/test/harvest/test_openalex.py +++ b/test/harvest/test_openalex.py @@ -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."