Skip to content

Commit 26a2f4d

Browse files
test(ee): add an EE specific test
1 parent 3c4432f commit 26a2f4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/functional/api/test_groups.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import pytest
22

33
import gitlab
4+
import tests.functional.conftest as conftest
5+
6+
require_gitlab_ee = pytest.mark.skipif(
7+
not conftest.is_gitlab_ee(conftest.gl()), reason="Requires GitLab EE"
8+
)
49

510

611
def test_groups(gl):
@@ -234,7 +239,7 @@ def test_group_wiki(group):
234239
assert wiki not in group.wikis.list()
235240

236241

237-
@pytest.mark.skip(reason="EE feature")
242+
@require_gitlab_ee
238243
def test_group_hooks(group):
239244
hook = group.hooks.create({"url": "http://hook.url"})
240245
assert hook in group.hooks.list()

0 commit comments

Comments
 (0)