From bdc4347acbbdb9f58b7c3abc2578a488de3d0a85 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Fri, 1 Oct 2021 16:56:59 +0200 Subject: datacite: skip empty abstracts Do not add abstracts where `clean` results in the empty string - this violates a constraint: `either abstract_sha1 or content is required` --- python/tests/import_datacite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/tests/import_datacite.py') diff --git a/python/tests/import_datacite.py b/python/tests/import_datacite.py index 8b6797ef..edbb6617 100644 --- a/python/tests/import_datacite.py +++ b/python/tests/import_datacite.py @@ -400,7 +400,7 @@ def test_datacite_conversions(datacite_importer): for now. """ datacite_importer.debug = True - for i in range(36): + for i in range(37): src = "tests/files/datacite/datacite_doc_{0:02d}.json".format(i) dst = "tests/files/datacite/datacite_result_{0:02d}.json".format(i) with open(src, "r") as f: -- cgit v1.2.3