summaryrefslogtreecommitdiffstats
path: root/python/tests/api_releases.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/tests/api_releases.py')
-rw-r--r--python/tests/api_releases.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/tests/api_releases.py b/python/tests/api_releases.py
index f495777c..73ce3757 100644
--- a/python/tests/api_releases.py
+++ b/python/tests/api_releases.py
@@ -96,6 +96,16 @@ def test_release(api):
# lookup
# TODO: via all; but need to generate random identifiers
+ # get redirects (none)
+ assert api.get_release_redirects(r2.ident) == []
+
+ # delete
+ eg = quick_eg(api)
+ api.delete_release(r2.ident, editgroup_id=eg.editgroup_id)
+ api.accept_editgroup(eg.editgroup_id)
+ r2 = api.get_release(r2.ident)
+ assert r2.state == "deleted"
+
def test_release_examples(api):
api.lookup_release(pmid='54321')
@@ -107,6 +117,10 @@ def test_release_examples(api):
assert r1.contribs[14].role == "editor"
assert r1.abstracts[0].mimetype == "application/xml+jats"
+ api.get_release_files(r1.ident)
+ api.get_release_filesets(r1.ident)
+ api.get_release_webcaptures(r1.ident)
+
def test_empty_fields(api):
eg = quick_eg(api)