diff options
| author | Simon Pamies <s.pamies@appweeve.com> | 2021-06-03 00:38:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-03 00:38:09 +0200 |
| commit | 74f5e62ef5bfffc7ba21494d05dbead60b59ecf0 (patch) | |
| tree | 163463c6b4aedece5dc675348c0ce96ff66d79af /tests/functional | |
| parent | 85bbd1a5db5eff8a8cea63b2b192aae66030423d (diff) | |
| download | gitlab-74f5e62ef5bfffc7ba21494d05dbead60b59ecf0.tar.gz | |
feat(objects): add support for Group wikis (#1484)
feat(objects): add support for Group wikis
Diffstat (limited to 'tests/functional')
| -rw-r--r-- | tests/functional/api/test_groups.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py index c2b8cbd..439d01c 100644 --- a/tests/functional/api/test_groups.py +++ b/tests/functional/api/test_groups.py @@ -194,3 +194,18 @@ def test_group_subgroups_projects(gl, user): assert group4.parent_id == group2.id assert gr1_project.namespace["id"] == group1.id assert gr2_project.namespace["parent_id"] == group1.id + + +@pytest.mark.skip +def test_group_wiki(group): + content = "Group Wiki page content" + wiki = group.wikis.create({"title": "groupwikipage", "content": content}) + assert len(group.wikis.list()) == 1 + + wiki = group.wikis.get(wiki.slug) + assert wiki.content == content + + wiki.content = "new content" + wiki.save() + wiki.delete() + assert len(group.wikis.list()) == 0 |
