diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-10-01 16:56:59 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-10-01 16:56:59 +0200 |
commit | bdc4347acbbdb9f58b7c3abc2578a488de3d0a85 (patch) | |
tree | 1b8c4ba4c23edb299fef488c346b7d2565bb9834 /python/tests/import_datacite.py | |
parent | 519c7e77cf3a54b9620adef07fedac9b37a5f9f2 (diff) | |
download | fatcat-bdc4347acbbdb9f58b7c3abc2578a488de3d0a85.tar.gz fatcat-bdc4347acbbdb9f58b7c3abc2578a488de3d0a85.zip |
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`
Diffstat (limited to 'python/tests/import_datacite.py')
-rw-r--r-- | python/tests/import_datacite.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |