aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests/api_filesets.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-07 18:23:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-07 18:23:09 -0700
commitfb4b999d5a7d36acd29e26d36c37f1a57dab0eb6 (patch)
treec7ab473a3071c5488684de73e904eb5634001b30 /python/tests/api_filesets.py
parent75a824c0fd5697f7748f57f09e022bce97d32e0c (diff)
downloadfatcat-fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6.tar.gz
fatcat-fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6.zip
basic tests for entity deletion, fetch redirects
Diffstat (limited to 'python/tests/api_filesets.py')
-rw-r--r--python/tests/api_filesets.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/tests/api_filesets.py b/python/tests/api_filesets.py
index 6f3305c1..c8032326 100644
--- a/python/tests/api_filesets.py
+++ b/python/tests/api_filesets.py
@@ -58,6 +58,16 @@ def test_fileset(api):
r1 = api.get_release(r1edit.ident, expand="filesets")
assert r1.filesets[0].manifest == fs1.manifest
+ # get redirects (none)
+ assert api.get_fileset_redirects(fs2.ident) == []
+
+ # delete
+ eg = quick_eg(api)
+ api.delete_fileset(fs2.ident, editgroup_id=eg.editgroup_id)
+ api.accept_editgroup(eg.editgroup_id)
+ fs2 = api.get_fileset(fs2.ident)
+ assert fs2.state == "deleted"
+
def test_fileset_examples(api):
fs3 = api.get_fileset('aaaaaaaaaaaaaztgaaaaaaaaam')