diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-07 18:23:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-07 18:23:09 -0700 |
commit | fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6 (patch) | |
tree | c7ab473a3071c5488684de73e904eb5634001b30 /python/tests/api_webcaptures.py | |
parent | 75a824c0fd5697f7748f57f09e022bce97d32e0c (diff) | |
download | fatcat-fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6.tar.gz fatcat-fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6.zip |
basic tests for entity deletion, fetch redirects
Diffstat (limited to 'python/tests/api_webcaptures.py')
-rw-r--r-- | python/tests/api_webcaptures.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/tests/api_webcaptures.py b/python/tests/api_webcaptures.py index db3ef172..2d9c1ae5 100644 --- a/python/tests/api_webcaptures.py +++ b/python/tests/api_webcaptures.py @@ -74,6 +74,16 @@ def test_webcapture(api): print(r1) assert r1.webcaptures[0].cdx == wc1.cdx + # get redirects (none) + assert api.get_webcapture_redirects(wc2.ident) == [] + + # delete + eg = quick_eg(api) + api.delete_webcapture(wc2.ident, editgroup_id=eg.editgroup_id) + api.accept_editgroup(eg.editgroup_id) + wc2 = api.get_webcapture(wc2.ident) + assert wc2.state == "deleted" + def test_webcapture_examples(api): wc3 = api.get_webcapture('aaaaaaaaaaaaa53xaaaaaaaaam') |