aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/import_grobid_metadata.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-23 21:07:01 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-23 21:07:01 -0800
commit642501efc92e31ac438fe0f70820415c825a3802 (patch)
tree967fa2a0c015f221bce1ad1bcdc6c3c021e837f5 /python/tests/import_grobid_metadata.py
parent1536109fff643767b6e8f8515fe0eb4d8cae5854 (diff)
downloadfatcat-642501efc92e31ac438fe0f70820415c825a3802.tar.gz
fatcat-642501efc92e31ac438fe0f70820415c825a3802.zip
start changes to release ES schema
Diffstat (limited to 'python/tests/import_grobid_metadata.py')
-rw-r--r--python/tests/import_grobid_metadata.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/tests/import_grobid_metadata.py b/python/tests/import_grobid_metadata.py
index feb604ce..4fed4aaa 100644
--- a/python/tests/import_grobid_metadata.py
+++ b/python/tests/import_grobid_metadata.py
@@ -26,7 +26,8 @@ def test_grobid_metadata_parse(grobid_metadata_importer):
print(re.contribs)
assert re.contribs[0].raw_name == "Wahyu Ary"
assert re.publisher == None
- assert re.extra.get('container_name') == None
+ if re.extra:
+ assert re.extra.get('container_name') == None
assert len(re.refs) == 27
def test_file_metadata_parse(grobid_metadata_importer):