From 98c38ff45144fb06c308ad6d1a4176b65b6a876a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 23 Jan 2019 15:34:11 -0800 Subject: ensure crossref importer doesn't create empty editgroups --- python/tests/import_crossref.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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" -- cgit v1.2.3