From 6afc3e8d0e01cba781928dbc2bcb53d3c3ff71fd Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 27 Dec 2019 00:51:01 +0100 Subject: datacite: fix harvest test Produced messages should match: jq '.data|length' tests/files/datacite_api.json --- python/tests/harvest_datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/tests') 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) -- cgit v1.2.3