Skip to content

Commit 657806a

Browse files
committed
test(groups): added a functional test for wiki groups
1 parent e384339 commit 657806a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/functional/api/test_groups.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,17 @@ def test_group_subgroups_projects(gl, user):
194194
assert group4.parent_id == group2.id
195195
assert gr1_project.namespace["id"] == group1.id
196196
assert gr2_project.namespace["parent_id"] == group1.id
197+
198+
199+
def test_group_wiki(group):
200+
content = "Group Wiki page content"
201+
wiki = group.wikis.create({"title": "groupwikipage", "content": content})
202+
assert len(group.wikis.list()) == 1
203+
204+
wiki = group.wikis.get(wiki.slug)
205+
assert wiki.content == content
206+
207+
wiki.content = "new content"
208+
wiki.save()
209+
wiki.delete()
210+
assert len(group.wikis.list()) == 0

0 commit comments

Comments
 (0)