From bb285248115e2df00a9049757a2f732f3c54dc09 Mon Sep 17 00:00:00 2001 From: Laura Wrubel Date: Mon, 8 Jul 2024 11:35:23 -0400 Subject: [PATCH] Restore assertion --- test/harvest/test_openalex.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/harvest/test_openalex.py b/test/harvest/test_openalex.py index 08598d2..71b4c01 100644 --- a/test/harvest/test_openalex.py +++ b/test/harvest/test_openalex.py @@ -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"