diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-10-23 16:16:54 +0200 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-10-23 16:16:54 +0200 |
commit | f332907457c897ad0483a0bffce3d01503445d0b (patch) | |
tree | d871082cc6b0fec206ea5c7a135fe4573039b1a2 /tools/python_test.py | |
parent | 20fdbe870f161ad7c47c7d57ebb2b6952acba8be (diff) | |
download | gitlab-f332907457c897ad0483a0bffce3d01503445d0b.tar.gz |
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)
Diffstat (limited to 'tools/python_test.py')
-rw-r--r-- | tools/python_test.py | 13 |
1 files changed, 13 insertions, 0 deletions
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) |