diff options
Diffstat (limited to 'python/tests/entity_helpers.py')
-rw-r--r-- | python/tests/entity_helpers.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/python/tests/entity_helpers.py b/python/tests/entity_helpers.py deleted file mode 100644 index dd6fa00a..00000000 --- a/python/tests/entity_helpers.py +++ /dev/null @@ -1,15 +0,0 @@ - -import json -import pytest -from fatcat.crossref_importer import FatcatCrossrefImporter -from fatcat.entity_helpers import * - -from crossref import crossref_importer - -def test_elastic_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) |