aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/citation_efficiency.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-13 14:23:37 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-13 14:23:37 -0700
commit6f778b5398d9caf9ab31c39bce792f75df9e62ec (patch)
treed80ff93574d915cac2bd70b8d579d50a09b97511 /python/tests/citation_efficiency.py
parent955d4942d5111cbbd8f4b99d4e3c6d79262dab6e (diff)
downloadfatcat-6f778b5398d9caf9ab31c39bce792f75df9e62ec.tar.gz
fatcat-6f778b5398d9caf9ab31c39bce792f75df9e62ec.zip
python tests passing (release_stage, ext_ids)
Diffstat (limited to 'python/tests/citation_efficiency.py')
-rw-r--r--python/tests/citation_efficiency.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/tests/citation_efficiency.py b/python/tests/citation_efficiency.py
index fe5006cc..200644cc 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")
+ r1 = ReleaseEntity(title="the target", ext_ids=ReleaseEntityExtIds())
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")
+ r1 = ReleaseEntity(title="the target", ext_ids=ReleaseEntityExtIds())
r1 = api.get_release(api.create_release(r1, editgroup_id=eg.editgroup_id).ident)
- r2 = ReleaseEntity(title="the citer")
+ r2 = ReleaseEntity(title="the citer", ext_ids=ReleaseEntityExtIds())
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")
- r2 = ReleaseEntity(title="citation empty array")
+ r1 = ReleaseEntity(title="citation null", ext_ids=ReleaseEntityExtIds())
+ r2 = ReleaseEntity(title="citation empty array", ext_ids=ReleaseEntityExtIds())
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")
+ r1 = ReleaseEntity(title="citation encoding", ext_ids=ReleaseEntityExtIds())
title = "title-unicode \\u0050 \\\" "
container = "container-unicode ☃︎ ä ö ü スティー"
extra = extra={'a': 1, 'b': 2, 'ö': 3}