From 0814d8664d58fadb136af3c4031ea6e7359eb8f5 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 24 Jan 2016 17:13:13 +0100 Subject: API tests for tags --- tools/python_test.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/python_test.py') 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() -- cgit v1.2.1