From 4dc1560da52e64290ad2d27f565598dfbdc27d56 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 29 May 2020 15:18:24 +0200 Subject: datacite: fix test docs --- python/tests/harvest_datacite.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/tests/harvest_datacite.py b/python/tests/harvest_datacite.py index 926d67ba..004d1fef 100644 --- a/python/tests/harvest_datacite.py +++ b/python/tests/harvest_datacite.py @@ -13,11 +13,11 @@ def test_datacite_harvest_date(mocker): # to Kafka mocker.patch('fatcat_tools.harvest.harvest_common.HarvestState.initialize_from_kafka') - # mock day request to crossref API + # mock day request to datacite API with open('tests/files/datacite_api.json', 'r') as f: - crossref_resp = json.loads(f.readline()) + resp = json.loads(f.readline()) responses.add(responses.GET, 'https://api.datacite.org/dois', - json=crossref_resp, status=200) + json=resp, status=200) harvester = HarvestDataciteWorker( kafka_hosts="dummy", -- cgit v1.2.3