File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -218,8 +218,9 @@ def test_group_subgroups_projects(gl, user):
218218 group4 .delete ()
219219
220220
221- @pytest .mark .skip
222- def test_group_wiki (group ):
221+ def test_group_wiki (gitlab_ee , group ):
222+ if not gitlab_ee :
223+ pytest .skip ("Requires GitLab EE to run" )
223224 content = "Group Wiki page content"
224225 wiki = group .wikis .create ({"title" : "groupwikipage" , "content" : content })
225226 assert wiki in group .wikis .list ()
@@ -234,8 +235,9 @@ def test_group_wiki(group):
234235 assert wiki not in group .wikis .list ()
235236
236237
237- @pytest .mark .skip (reason = "EE feature" )
238- def test_group_hooks (group ):
238+ def test_group_hooks (gitlab_ee , group ):
239+ if not gitlab_ee :
240+ pytest .skip ("Requires GitLab EE to run" )
239241 hook = group .hooks .create ({"url" : "http://hook.url" })
240242 assert hook in group .hooks .list ()
241243
Original file line number Diff line number Diff line change @@ -203,6 +203,11 @@ def is_gitlab_ee(gl: gitlab.Gitlab) -> bool:
203203 return False
204204
205205
206+ @pytest .fixture (scope = "session" )
207+ def gitlab_ee (gl ) -> bool :
208+ return is_gitlab_ee (gl = gl )
209+
210+
206211@pytest .fixture (scope = "session" )
207212def gitlab_runner (gl ):
208213 container = "gitlab-runner-test"
You can’t perform that action at this time.
0 commit comments