summaryrefslogtreecommitdiff
path: root/tools/python_test_v4.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2018-05-29 18:46:40 +0200
committerGitHub <noreply@github.com>2018-05-29 18:46:40 +0200
commit01a41efd271dd08d4b5744473fb71a67d9f5dea5 (patch)
treebc417407e9b6b056d14cb81cd953e572ce0b022b /tools/python_test_v4.py
parent40b9f4d62d5b9853bfd63317d8ad578b4525e665 (diff)
parente00cad4f73c43d28799ec6e79e32fd03e58e79b4 (diff)
downloadgitlab-01a41efd271dd08d4b5744473fb71a67d9f5dea5.tar.gz
Merge pull request #507 from Miouge1/badges
Add support for Project badges
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r--tools/python_test_v4.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py
index 558d7ab..70f093d 100644
--- a/tools/python_test_v4.py
+++ b/tools/python_test_v4.py
@@ -653,6 +653,12 @@ assert(admin_project.star_count == 0)
#lists = board.lists.list()
#assert(len(lists) == begin_size - 1)
+# project badges
+badge_image = 'http://example.com'
+badge_link = 'http://example/img.svg'
+bp = admin_project.badges.create({'link_url': badge_link, 'image_url': badge_image})
+assert(len(admin_project.badges.list()) == 1)
+
# project wiki
wiki_content = 'Wiki page content'
wp = admin_project.wikis.create({'title': 'wikipage', 'content': wiki_content})