diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-23 16:34:08 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-23 16:34:08 -0700 |
commit | 537db73cce0d0a71fafeeb20423491c0cb75ea7a (patch) | |
tree | 5d83b11ae8aedf7a4f54df5ae38f66e13051dc51 /python/tests | |
parent | 104f1fd882216dc79bd7515e0b66834a779c1bf7 (diff) | |
parent | 9fbab0defca5016c0eb5b851ff73e03efac4fac8 (diff) | |
download | fatcat-537db73cce0d0a71fafeeb20423491c0cb75ea7a.tar.gz fatcat-537db73cce0d0a71fafeeb20423491c0cb75ea7a.zip |
Merge branch 'bnewbold-import-tweaks'
Diffstat (limited to 'python/tests')
-rw-r--r-- | python/tests/import_arxiv.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/tests/import_arxiv.py b/python/tests/import_arxiv.py index bbad8fa6..1e649616 100644 --- a/python/tests/import_arxiv.py +++ b/python/tests/import_arxiv.py @@ -71,6 +71,7 @@ def test_arxiv_xml_parse(arxiv_importer): assert len(r1.contribs) == 4 assert r1.extra['arxiv']['categories'] == ['cond-mat.stat-mech', 'physics.bio-ph', 'physics.data-an'] assert r1.extra['arxiv']['base_id'] == '1810.09584' + assert r1.extra['superceded'] == True assert r1.contribs[0].raw_name == "Raphael Chetrite" assert r1.contribs[0].role == "author" @@ -92,6 +93,8 @@ def test_arxiv_xml_parse(arxiv_importer): assert r1.extra['arxiv']['comments'] == "7 pages, 2 figures" assert r1.extra['arxiv']['categories'] == ["cond-mat.stat-mech", "physics.bio-ph", "physics.data-an"] + assert not r2.extra.get('superceded') + r2.extra['superceded'] = True assert r1.extra == r2.extra assert not r1.refs |