summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-15 17:13:05 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-21 11:41:29 -0700
commite27e3f443ea35b145dd07c252cdc8619d7c2ab15 (patch)
treeea395cc241aaf1f218205545088a7fb3bbbdba37 /python
parentb4f6f6af3b85ce65c8e892315e13c009feea7c3e (diff)
downloadfatcat-e27e3f443ea35b145dd07c252cdc8619d7c2ab15.tar.gz
fatcat-e27e3f443ea35b145dd07c252cdc8619d7c2ab15.zip
minor jalc test cleanup
Diffstat (limited to 'python')
-rw-r--r--python/tests/import_jalc.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/python/tests/import_jalc.py b/python/tests/import_jalc.py
index 7b25f0fa..e92c26c0 100644
--- a/python/tests/import_jalc.py
+++ b/python/tests/import_jalc.py
@@ -43,7 +43,7 @@ def test_jalc_importer(jalc_importer):
assert counts['skip'] == 0
assert last_index == jalc_importer.api.get_changelog(limit=1)[0].index
-def test_jalc_dict_parse(jalc_importer):
+def test_jalc_xml_parse(jalc_importer):
with open('tests/files/jalc_lod_sample.xml', 'r') as f:
soup = BeautifulSoup(f, "xml")
r = jalc_importer.parse_record(soup.find_all("Description")[0])
@@ -62,11 +62,6 @@ def test_jalc_dict_parse(jalc_importer):
assert r.issue == "8"
assert r.pages == "898-902"
assert r.release_year == 1989
- # XXX:
- #assert 'subtitle' not in r.extra
- #assert 'subtitle' not in r.extra['jalc']
- #assert 'funder' not in r.extra
- #assert 'funder' not in r.extra['jalc']
# matched by ISSN, so shouldn't be in there?
#assert extra['container_name'] == "International Journal of Quantum Chemistry"
assert len(r.contribs) == 4