diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 18:01:27 -0700 |
commit | 7c18e1d22b16bb920c9bb9a788691820bbdb2bfa (patch) | |
tree | 0e623bc4442f8a36267607a8f32106a3f241ee9c /python/tests/citation_efficiency.py | |
parent | 1e0e890284978dc7379db707ed1fa2c902e297c6 (diff) | |
download | fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.tar.gz fatcat-7c18e1d22b16bb920c9bb9a788691820bbdb2bfa.zip |
python impl
Diffstat (limited to 'python/tests/citation_efficiency.py')
-rw-r--r-- | python/tests/citation_efficiency.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/python/tests/citation_efficiency.py b/python/tests/citation_efficiency.py index e4add80c..b447ca56 100644 --- a/python/tests/citation_efficiency.py +++ b/python/tests/citation_efficiency.py @@ -18,7 +18,7 @@ def test_citation_indexing(api): ReleaseRef(key="second", title="the second title"), ReleaseRef(key="third", title="a third title"), ] - r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident) + r1 = api.get_release(api.create_release(eg.editgroup_id, r1).ident) api.accept_editgroup(eg.editgroup_id) assert r1.refs[0].index == 0 @@ -30,7 +30,7 @@ def test_citation_indexing(api): r1.refs.pop(1) eg = quick_eg(api) - api.update_release(r1.ident, r1, editgroup_id=eg.editgroup_id) + api.update_release(eg.editgroup_id, r1.ident, r1) api.accept_editgroup(eg.editgroup_id) r1 = api.get_release(r1.ident) @@ -45,18 +45,18 @@ def test_citation_targets(api): eg = quick_eg(api) r1 = ReleaseEntity(title="the target", ext_ids=ReleaseExtIds()) - r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident) + r1 = api.get_release(api.create_release(eg.editgroup_id, r1).ident) r2 = ReleaseEntity(title="the citer", ext_ids=ReleaseExtIds()) r2.refs = [ ReleaseRef(key="first", title="something else"), ReleaseRef(key="second", title="the target title"), ] - r2 = api.get_release(api.create_release(r2, editgroup_id=eg.editgroup_id).ident) + r2 = api.get_release(api.create_release(eg.editgroup_id, r2).ident) api.accept_editgroup(eg.editgroup_id) eg = quick_eg(api) r2.refs[1].target_release_id = r1.ident - api.update_release(r2.ident, r2, editgroup_id=eg.editgroup_id) + api.update_release(eg.editgroup_id, r2.ident, r2) api.accept_editgroup(eg.editgroup_id) r2 = api.get_release(r2.ident) assert r2.refs[0].key == "first" @@ -76,8 +76,8 @@ def test_citation_empty_array(api): r2.refs = [] eg = quick_eg(api) - r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident) - r2 = api.get_release(api.create_release(r2, editgroup_id=eg.editgroup_id).ident) + r1 = api.get_release(api.create_release(eg.editgroup_id, r1).ident) + r2 = api.get_release(api.create_release(eg.editgroup_id, r2).ident) api.accept_editgroup(eg.editgroup_id) print(r1.refs) @@ -103,7 +103,7 @@ def test_citation_encoding(api): ] eg = quick_eg(api) - r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident) + r1 = api.get_release(api.create_release(eg.editgroup_id, r1).ident) api.accept_editgroup(eg.editgroup_id) assert title == r1.refs[0].title |