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/transform_tests.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'python/tests/transform_tests.py') diff --git a/python/tests/transform_tests.py b/python/tests/transform_tests.py index 52a9965a..18522eff 100644 --- a/python/tests/transform_tests.py +++ b/python/tests/transform_tests.py @@ -1,15 +1,14 @@ import json import pytest -from fatcat_tools.importers.crossref import FatcatCrossrefImporter -from fatcat_tools.transforms import * +from fatcat_tools import * from import_crossref import crossref_importer -def test_elastic_convert(crossref_importer): +def test_elasticsearch_convert(crossref_importer): with open('tests/files/crossref-works.single.json', 'r') as f: # not a single line raw = json.loads(f.read()) (r, c) = crossref_importer.parse_crossref_dict(raw) r.state = 'active' - release_elastic_dict(r) + release_to_elasticsearch(r) -- cgit v1.2.3