aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/citation_efficiency.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-02 17:55:15 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-02 17:55:22 -0700
commit6fa2d38be243531747241a3ae602069d507368d9 (patch)
tree7cc81446a97a372640f6a189f09b88fa466e77ce /python/tests/citation_efficiency.py
parent367b06f64546e4533662017c9dbe72aca175a294 (diff)
downloadfatcat-6fa2d38be243531747241a3ae602069d507368d9.tar.gz
fatcat-6fa2d38be243531747241a3ae602069d507368d9.zip
lint: simple, safe inline lint fixes
'==' vs 'is'; 'not a in b' vs 'a not in b'; etc
Diffstat (limited to 'python/tests/citation_efficiency.py')
-rw-r--r--python/tests/citation_efficiency.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tests/citation_efficiency.py b/python/tests/citation_efficiency.py
index f8807db6..1d57dfeb 100644
--- a/python/tests/citation_efficiency.py
+++ b/python/tests/citation_efficiency.py
@@ -58,7 +58,7 @@ def test_citation_targets(api):
assert r2.refs[1].key == "second"
assert r2.refs[0].index == 0 # TODO: one-indexing?
assert r2.refs[1].index == 1
- assert r2.refs[0].target_release_id == None
+ assert r2.refs[0].target_release_id is None
assert r2.refs[1].target_release_id == r1.ident
assert len(r2.refs) == 2
@@ -81,7 +81,7 @@ def test_citation_empty_array(api):
assert r1.refs == r2.refs
r1b = api.get_release(r1.ident, hide="refs")
- assert r1b.refs == None
+ assert r1b.refs is None
def test_citation_encoding(api):
# escape-only changes (eg, \u1234 whatever for ASCII)