aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2020-05-29 15:18:24 +0200
committerMartin Czygan <martin.czygan@gmail.com>2020-05-29 15:18:24 +0200
commit4dc1560da52e64290ad2d27f565598dfbdc27d56 (patch)
tree3fcda347c6219d285e67c3d4ac6f630406f47b92 /python
parent92bdf2bd5d99ce6eb76ea1dcec27e21c6f362651 (diff)
downloadfatcat-4dc1560da52e64290ad2d27f565598dfbdc27d56.tar.gz
fatcat-4dc1560da52e64290ad2d27f565598dfbdc27d56.zip
datacite: fix test docs
Diffstat (limited to 'python')
-rw-r--r--python/tests/harvest_datacite.py6
1 files changed, 3 insertions, 3 deletions
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",