diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-23 15:34:11 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-23 15:34:11 -0800 |
commit | 98c38ff45144fb06c308ad6d1a4176b65b6a876a (patch) | |
tree | 819fefca284ff110b0105a16a4887316dac79df2 | |
parent | 5aeb5f79d83a2559671fed6d9afed2b0987139b4 (diff) | |
download | fatcat-98c38ff45144fb06c308ad6d1a4176b65b6a876a.tar.gz fatcat-98c38ff45144fb06c308ad6d1a4176b65b6a876a.zip |
ensure crossref importer doesn't create empty editgroups
-rw-r--r-- | python/tests/import_crossref.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tests/import_crossref.py b/python/tests/import_crossref.py index 45123540..a7826a73 100644 --- a/python/tests/import_crossref.py +++ b/python/tests/import_crossref.py @@ -36,6 +36,7 @@ def test_crossref_importer(crossref_importer): assert eg.extra['git_rev'] assert "fatcat_tools.CrossrefImporter" in eg.extra['agent'] + last_index = crossref_importer.api.get_changelog(limit=1)[0].index with open('tests/files/crossref-works.2018-01-21.badsample.json', 'r') as f: crossref_importer.bezerk_mode = False crossref_importer.reset() @@ -43,6 +44,7 @@ def test_crossref_importer(crossref_importer): assert counts['insert'] == 0 assert counts['exists'] == 14 assert counts['skip'] == 0 + assert last_index == crossref_importer.api.get_changelog(limit=1)[0].index def test_crossref_mappings(crossref_importer): assert crossref_importer.map_release_type('journal-article') == "article-journal" |