summaryrefslogtreecommitdiffstats
path: root/python/tests/api_webcaptures.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_webcaptures.py')
-rw-r--r--python/tests/api_webcaptures.py10
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')