summaryrefslogtreecommitdiffstats
path: root/python/tests/api_misc.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:56:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-20 19:56:09 -0700
commit7815c6739e4ae730c7fe4589e8aa15b2b0f1033d (patch)
tree6ed0738b680e5fd22aa84e3c6d14413515bc57d2 /python/tests/api_misc.py
parentd56a544ec64df7ce6257982bd7a02b45b2cd1af5 (diff)
downloadfatcat-7815c6739e4ae730c7fe4589e8aa15b2b0f1033d.tar.gz
fatcat-7815c6739e4ae730c7fe4589e8aa15b2b0f1033d.zip
add release expand api tests
Diffstat (limited to 'python/tests/api_misc.py')
-rw-r--r--python/tests/api_misc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/tests/api_misc.py b/python/tests/api_misc.py
index ef26a6c0..6fea9d29 100644
--- a/python/tests/api_misc.py
+++ b/python/tests/api_misc.py
@@ -29,6 +29,12 @@ def test_lookup_hide_extend(api):
assert r.container.issnl
assert r.abstracts == []
+ f = api.lookup_file(sha256='ffc1005680cb620eec4c913437dfabbf311b535cfe16cbaeb2faec1f92afc362')
+ assert f.releases is None
+
+ f = api.lookup_file(sha256='ffc1005680cb620eec4c913437dfabbf311b535cfe16cbaeb2faec1f92afc362', expand='releases')
+ assert f.releases[0].ident == f.release_ids[0]
+
def test_unexpected_body(api):
eg = quick_eg(api)