summaryrefslogtreecommitdiffstats
path: root/python/tests/api_creators.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_creators.py')
-rw-r--r--python/tests/api_creators.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/tests/api_creators.py b/python/tests/api_creators.py
index 82067b3f..91eedd24 100644
--- a/python/tests/api_creators.py
+++ b/python/tests/api_creators.py
@@ -39,6 +39,16 @@ def test_creators(api):
assert c2.revision == c2_rev.revision
assert c2.display_name == c2_rev.display_name
+ # get redirects (none)
+ assert api.get_creator_redirects(c2.ident) == []
+
+ # delete
+ eg = quick_eg(api)
+ api.delete_creator(c2.ident, editgroup_id=eg.editgroup_id)
+ api.accept_editgroup(eg.editgroup_id)
+ c2 = api.get_creator(c2.ident)
+ assert c2.state == "deleted"
+
# TODO: test expansion of new creator/release pair (release get)?
def test_creators_examples(api):