summaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2019-12-27 00:51:01 +0100
committerMartin Czygan <martin.czygan@gmail.com>2019-12-27 00:51:01 +0100
commit6afc3e8d0e01cba781928dbc2bcb53d3c3ff71fd (patch)
treececab3300e67be677694cfc87bdccd6871babe6c /python/tests
parent8b447f75a38e595248bd065f74dc10a9ce918e99 (diff)
downloadfatcat-6afc3e8d0e01cba781928dbc2bcb53d3c3ff71fd.tar.gz
fatcat-6afc3e8d0e01cba781928dbc2bcb53d3c3ff71fd.zip
datacite: fix harvest test
Produced messages should match: jq '.data|length' tests/files/datacite_api.json
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/harvest_datacite.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tests/harvest_datacite.py b/python/tests/harvest_datacite.py
index 5aaa8ac4..926d67ba 100644
--- a/python/tests/harvest_datacite.py
+++ b/python/tests/harvest_datacite.py
@@ -40,6 +40,6 @@ def test_datacite_harvest_date(mocker):
# check that we published the expected number of DOI objects were published
# to the (mock) kafka topic
- assert harvester.producer.produce.call_count == 25
+ assert harvester.producer.produce.call_count == 1
assert harvester.producer.flush.call_count == 1
assert harvester.producer.poll.called_once_with(0)