summaryrefslogtreecommitdiffstats
path: root/python/tests/release_model.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-12 22:54:04 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-12 22:54:04 -0800
commit0109c3a75e201e81036ad031d93602ba6c46ba08 (patch)
treedb016e7696b3cbbee98508bd1a1c3c50fc7b523f /python/tests/release_model.py
parent97468e7de2cae4de666f2443ca5ae1f8753952c1 (diff)
downloadfatcat-0109c3a75e201e81036ad031d93602ba6c46ba08.tar.gz
fatcat-0109c3a75e201e81036ad031d93602ba6c46ba08.zip
Revert "FatcatRelease: start wrapping entities with extra methods"
This reverts commit d70abdd82955feba4eecdda24ff6d95f703e0598. Decided this wasn't the right approach.
Diffstat (limited to 'python/tests/release_model.py')
-rw-r--r--python/tests/release_model.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/python/tests/release_model.py b/python/tests/release_model.py
deleted file mode 100644
index 4b9dddba..00000000
--- a/python/tests/release_model.py
+++ /dev/null
@@ -1,15 +0,0 @@
-
-import json
-import pytest
-from fatcat.crossref_importer import FatcatCrossrefImporter
-from fatcat.release_model import FatcatRelease
-
-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'
- r.to_elastic_dict()