summaryrefslogtreecommitdiff
path: root/tools/python_test.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-24 18:27:46 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-24 18:27:46 +0100
commit7981987141825c198d5664d843e86472b9e44f3f (patch)
tree3e9d2036edd164b46d218e92173ddee8ef2e1b5a /tools/python_test.py
parent0814d8664d58fadb136af3c4031ea6e7359eb8f5 (diff)
downloadgitlab-7981987141825c198d5664d843e86472b9e44f3f.tar.gz
Implement setting release info on a tag
Add the set_release_description() method to ProjectTag. Add python API test for this method.
Diffstat (limited to 'tools/python_test.py')
-rw-r--r--tools/python_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py
index d4786d5..2dc7a10 100644
--- a/tools/python_test.py
+++ b/tools/python_test.py
@@ -148,4 +148,7 @@ assert(m1.issues()[0].title == 'my issue 1')
# tags
tag1 = admin_project.tags.create({'tag_name': 'v1.0', 'ref': 'master'})
assert(len(admin_project.tags.list()) == 1)
+tag1.set_release_description('Description 1')
+tag1.set_release_description('Description 2')
+assert(tag1.release.description == 'Description 2')
tag1.delete()