diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:42:57 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:43:07 -0700 |
commit | c01a4ba190cc18a8186545ebb55c35864676b538 (patch) | |
tree | 6ec59ce457bcaa50932f04c44fd781a53ae33c52 /python/tests/citation_efficiency.py | |
parent | 3ee54189b665d37933b6108fb85b28bb823dac4a (diff) | |
download | fatcat-c01a4ba190cc18a8186545ebb55c35864676b538.tar.gz fatcat-c01a4ba190cc18a8186545ebb55c35864676b538.zip |
python impl
Diffstat (limited to 'python/tests/citation_efficiency.py')
-rw-r--r-- | python/tests/citation_efficiency.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/tests/citation_efficiency.py b/python/tests/citation_efficiency.py index 200644cc..e4add80c 100644 --- a/python/tests/citation_efficiency.py +++ b/python/tests/citation_efficiency.py @@ -12,7 +12,7 @@ def test_citation_indexing(api): # indexing is consistent and reacts to change eg = quick_eg(api) - r1 = ReleaseEntity(title="the target", ext_ids=ReleaseEntityExtIds()) + r1 = ReleaseEntity(title="the target", ext_ids=ReleaseExtIds()) r1.refs = [ ReleaseRef(key="first", title="the first title"), ReleaseRef(key="second", title="the second title"), @@ -44,9 +44,9 @@ def test_citation_targets(api): # also, updates work eg = quick_eg(api) - r1 = ReleaseEntity(title="the target", ext_ids=ReleaseEntityExtIds()) + r1 = ReleaseEntity(title="the target", ext_ids=ReleaseExtIds()) r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident) - r2 = ReleaseEntity(title="the citer", ext_ids=ReleaseEntityExtIds()) + r2 = ReleaseEntity(title="the citer", ext_ids=ReleaseExtIds()) r2.refs = [ ReleaseRef(key="first", title="something else"), ReleaseRef(key="second", title="the target title"), @@ -70,8 +70,8 @@ def test_citation_targets(api): def test_citation_empty_array(api): # distinction between empty array (no citations) and no array (hidden) - r1 = ReleaseEntity(title="citation null", ext_ids=ReleaseEntityExtIds()) - r2 = ReleaseEntity(title="citation empty array", ext_ids=ReleaseEntityExtIds()) + r1 = ReleaseEntity(title="citation null", ext_ids=ReleaseExtIds()) + r2 = ReleaseEntity(title="citation empty array", ext_ids=ReleaseExtIds()) r1.refs = None r2.refs = [] @@ -91,7 +91,7 @@ def test_citation_empty_array(api): def test_citation_encoding(api): # escape-only changes (eg, \u1234 whatever for ASCII) - r1 = ReleaseEntity(title="citation encoding", ext_ids=ReleaseEntityExtIds()) + r1 = ReleaseEntity(title="citation encoding", ext_ids=ReleaseExtIds()) title = "title-unicode \\u0050 \\\" " container = "container-unicode ☃︎ ä ö ü スティー" extra = extra={'a': 1, 'b': 2, 'ö': 3} |