From fb4b999d5a7d36acd29e26d36c37f1a57dab0eb6 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 7 May 2019 18:23:09 -0700 Subject: basic tests for entity deletion, fetch redirects --- python/tests/api_webcaptures.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'python/tests/api_webcaptures.py') 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') -- cgit v1.2.3