summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-03-30 20:56:04 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-03-30 21:23:11 -0700
commit851c40143d44a73a92ff2c9556b3a63f29668c2d (patch)
treeb21d56c1029a9862f94fffffa627ee643d788767 /python/tests
parent98933a068ec3d918deb0e7dff30aed517ca515d9 (diff)
downloadfatcat-851c40143d44a73a92ff2c9556b3a63f29668c2d.tar.gz
fatcat-851c40143d44a73a92ff2c9556b3a63f29668c2d.zip
crossref: switch from index-date to update-date
This goes against what the API docs recommend, but we are currently far behind on updates and need to catch up. Other than what the docs say, this seems to be consistent with the behavior we want.
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/harvest_crossref.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tests/harvest_crossref.py b/python/tests/harvest_crossref.py
index 52aa7b81..e902cda5 100644
--- a/python/tests/harvest_crossref.py
+++ b/python/tests/harvest_crossref.py
@@ -36,7 +36,7 @@ def test_crossref_harvest_date(mocker):
assert "mailto:test@fatcat.wiki" in responses.calls[0].request.headers['User-Agent']
# check that correct date param was passed as expected
- assert "filter=from-index-date%3A2019-02-03" in responses.calls[0].request.url
+ assert "filter=from-update-date%3A2019-02-03" in responses.calls[0].request.url
# check that we published the expected number of DOI objects were published
# to the (mock) kafka topic