diff options
author | Nejc Habjan <nejc.habjan@siemens.com> | 2022-01-14 00:05:11 +0100 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2022-01-13 16:04:55 -0800 |
commit | 259668ad8cb54348e4a41143a45f899a222d2d35 (patch) | |
tree | e27ed119f6968ecc641412edc82480558029a61b /tests/functional/api/test_groups.py | |
parent | 27e07422ba98b875f999192318f44f83eb16c501 (diff) | |
download | gitlab-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.py | 16 |
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 |