From f332907457c897ad0483a0bffce3d01503445d0b Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sun, 23 Oct 2016 16:16:54 +0200 Subject: Add support for boards API This is not fully usable because the gitlab API has some limitations: - not possible to create boards programmatically - not possible to get labels ID (https://gitlab.com/gitlab-org/gitlab-ce/issues/23448) --- tools/python_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/python_test.py') diff --git a/tools/python_test.py b/tools/python_test.py index f9f5bb8..888d553 100644 --- a/tools/python_test.py +++ b/tools/python_test.py @@ -253,6 +253,19 @@ assert(admin_project.star_count == 1) admin_project = admin_project.unstar() assert(admin_project.star_count == 0) +# project boards +#boards = admin_project.boards.list() +#assert(len(boards)) +#board = boards[0] +#lists = board.lists.list() +#begin_size = len(lists) +#last_list = lists[-1] +#last_list.position = 0 +#last_list.save() +#last_list.delete() +#lists = board.lists.list() +#assert(len(lists) == begin_size - 1) + # namespaces ns = gl.namespaces.list() assert(len(ns) != 0) -- cgit v1.2.1