summaryrefslogtreecommitdiff
path: root/tools/python_test.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-24 17:13:13 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-24 17:13:13 +0100
commit0814d8664d58fadb136af3c4031ea6e7359eb8f5 (patch)
tree1044672bf9e944b3cce37061b21510ac11e0f73c /tools/python_test.py
parent339d3295a53c5ba82780879d9881b6279d9001e9 (diff)
downloadgitlab-0814d8664d58fadb136af3c4031ea6e7359eb8f5.tar.gz
API tests for tags
Diffstat (limited to 'tools/python_test.py')
-rw-r--r--tools/python_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py
index 916f84b..d4786d5 100644
--- a/tools/python_test.py
+++ b/tools/python_test.py
@@ -144,3 +144,8 @@ assert(len(admin_project.issues.list(state='closed')) == 1)
assert(len(admin_project.issues.list(state='opened')) == 2)
assert(len(admin_project.issues.list(milestone='milestone1')) == 1)
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.delete()