summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Czygan <martin@archive.org>2020-05-29 13:38:35 +0000
committerMartin Czygan <martin@archive.org>2020-05-29 13:38:35 +0000
commit84efbf54ee4fb0ed7bd36adb8e3fcce84f3f385c (patch)
tree3fcda347c6219d285e67c3d4ac6f630406f47b92
parent92bdf2bd5d99ce6eb76ea1dcec27e21c6f362651 (diff)
parent4dc1560da52e64290ad2d27f565598dfbdc27d56 (diff)
downloadfatcat-84efbf54ee4fb0ed7bd36adb8e3fcce84f3f385c.tar.gz
fatcat-84efbf54ee4fb0ed7bd36adb8e3fcce84f3f385c.zip
Merge branch 'martin-datacite-harvest-test-docs' into 'master'
datacite: fix test docs See merge request webgroup/fatcat!54
-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",