From bb28a3fc1cc900f2dde31e1dbc492d9661034f41 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 15 Nov 2018 13:11:52 -0800 Subject: large refactor of python names/paths - Add __init__.py files for fatcat_tools submodules, and use them in imports - Add a bunch of comments to files. - rename a number of classes and functions to be less verbose --- python/tests/import_grobid_metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/tests/import_grobid_metadata.py') diff --git a/python/tests/import_grobid_metadata.py b/python/tests/import_grobid_metadata.py index 8b268e21..ee7040c9 100644 --- a/python/tests/import_grobid_metadata.py +++ b/python/tests/import_grobid_metadata.py @@ -3,7 +3,7 @@ import os import json import base64 import pytest -from fatcat_tools.importers.grobid_metadata import FatcatGrobidMetadataImporter +from fatcat_tools.importers import GrobidMetadataImporter """ WARNING: these tests are currently very fragile because they have database @@ -12,7 +12,7 @@ side-effects. Should probably be disabled or re-written. @pytest.fixture(scope="function") def grobid_metadata_importer(): - yield FatcatGrobidMetadataImporter("http://localhost:9411/v0") + yield GrobidMetadataImporter("http://localhost:9411/v0") # TODO: use API to check that entities actually created... #def test_grobid_metadata_importer_batch(grobid_metadata_importer): -- cgit v1.2.3