diff options
| author | Ivan Sugonyak <sugonyak.ivan@gmail.com> | 2021-06-25 20:49:04 +0300 |
|---|---|---|
| committer | Ivan Sugonyak <sugonyak.ivan@gmail.com> | 2021-06-26 02:01:08 +0300 |
| commit | 4a7e9b86aa348b72925bce3af1e5d988b8ce3439 (patch) | |
| tree | 2ca75418bb4e5670f30ec5a3d2fe30447b83dc29 /tests/functional/api | |
| parent | af7aae73e90b54cab7bbf38a8575157416693423 (diff) | |
| download | gitlab-4a7e9b86aa348b72925bce3af1e5d988b8ce3439.tar.gz | |
feat(api): add group hooks
Diffstat (limited to 'tests/functional/api')
| -rw-r--r-- | tests/functional/api/test_groups.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py index 439d01c..5db5829 100644 --- a/tests/functional/api/test_groups.py +++ b/tests/functional/api/test_groups.py @@ -209,3 +209,15 @@ def test_group_wiki(group): wiki.save() wiki.delete() assert len(group.wikis.list()) == 0 + + +def test_group_hooks(group): + hook = group.hooks.create({"url": "http://hook.url"}) + assert len(group.hooks.list()) == 1 + + hook.note_events = True + hook.save() + + hook = group.hooks.get(hook.id) + assert hook.note_events is True + hook.delete() |
