From 11dfac5f8f9ced9b56cf277d0e3adeccc572b251 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 18 Apr 2019 16:49:49 -0700 Subject: fix arabesque importer crawl_id None bug --- python/tests/import_arabesque.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python/tests') diff --git a/python/tests/import_arabesque.py b/python/tests/import_arabesque.py index 9d74f96c..9483eb45 100644 --- a/python/tests/import_arabesque.py +++ b/python/tests/import_arabesque.py @@ -7,7 +7,7 @@ from fixtures import api @pytest.fixture(scope="function") def arabesque_importer(api): - yield ArabesqueMatchImporter(api, extid_type="doi") + yield ArabesqueMatchImporter(api, extid_type="doi", crawl_id="DUMMY123") # TODO: use API to check that entities actually created... def test_arabesque_importer_basic(arabesque_importer): @@ -31,6 +31,7 @@ def test_arabesque_importer(arabesque_importer): assert eg.description assert "identifier/url seedlist" in eg.description.lower() assert eg.extra['git_rev'] + assert eg.extra['crawl_id'] == "DUMMY123" assert "fatcat_tools.ArabesqueMatchImporter" in eg.extra['agent'] # re-insert; should skip -- cgit v1.2.3