diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-01 12:13:46 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2017-11-01 12:13:46 +0100 |
commit | 5082879dcfbe322bb16e4c2387c25ec4f4407cb1 (patch) | |
tree | bcb261cefc6b4c5708a07989e16bfe4275027da3 /tools/python_test_v4.py | |
parent | 4744200d982f7fc556d1202330b218850bd232d6 (diff) | |
download | gitlab-5082879dcfbe322bb16e4c2387c25ec4f4407cb1.tar.gz |
Add support for wiki pages
Diffstat (limited to 'tools/python_test_v4.py')
-rw-r--r-- | tools/python_test_v4.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index 8a8be68..0b1793a 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -496,6 +496,18 @@ assert(admin_project.star_count == 0) #lists = board.lists.list() #assert(len(lists) == begin_size - 1) +# project wiki +wiki_content = 'Wiki page content' +wp = admin_project.wikis.create({'title': 'wikipage', 'content': wiki_content}) +assert(len(admin_project.wikis.list()) == 1) +wp = admin_project.wikis.get(wp.slug) +assert(wp.content == wiki_content) +# update and delete seem broken +# wp.content = 'new content' +# wp.save() +# wp.delete() +# assert(len(admin_project.wikis.list()) == 0) + # namespaces ns = gl.namespaces.list(all=True) assert(len(ns) != 0) |