summaryrefslogtreecommitdiff
path: root/tests/functional/api/test_groups.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-01-14 00:05:11 +0100
committerJohn Villalovos <john@sodarock.com>2022-01-13 16:04:55 -0800
commit259668ad8cb54348e4a41143a45f899a222d2d35 (patch)
treee27ed119f6968ecc641412edc82480558029a61b /tests/functional/api/test_groups.py
parent27e07422ba98b875f999192318f44f83eb16c501 (diff)
downloadgitlab-259668ad8cb54348e4a41143a45f899a222d2d35.tar.gz
feat(api): add `project.transfer()` and deprecate `transfer_project()`
Diffstat (limited to 'tests/functional/api/test_groups.py')
-rw-r--r--tests/functional/api/test_groups.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py
index 105acbb..584ea83 100644
--- a/tests/functional/api/test_groups.py
+++ b/tests/functional/api/test_groups.py
@@ -231,3 +231,19 @@ def test_group_hooks(group):
hook = group.hooks.get(hook.id)
assert hook.note_events is True
hook.delete()
+
+
+@pytest.mark.skip(reason="Pending #1807")
+def test_group_transfer(gl, group):
+ transfer_group = gl.groups.create({"name": "transfer-test-group"})
+ assert group.namespace["path"] != group.full_path
+
+ transfer_group.transfer(group.id)
+
+ transferred_group = gl.projects.get(transfer_group.id)
+ assert transferred_group.namespace["path"] == group.full_path
+
+ transfer_group.transfer()
+
+ transferred_group = gl.projects.get(transfer_group.id)
+ assert transferred_group.path == transferred_group.full_path