Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c0c32f

Browse files
test(ee): add an EE specific test
1 parent3c4432f commit6c0c32f

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

‎tests/functional/api/test_groups.py‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,9 @@ def test_group_subgroups_projects(gl, user):
218218
group4.delete()
219219

220220

221-
@pytest.mark.skip
222-
deftest_group_wiki(group):
221+
deftest_group_wiki(group,gitlab_ee):
222+
ifnotgitlab_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
assertwikiingroup.wikis.list()
@@ -234,8 +235,9 @@ def test_group_wiki(group):
234235
assertwikinotingroup.wikis.list()
235236

236237

237-
@pytest.mark.skip(reason="EE feature")
238-
deftest_group_hooks(group):
238+
deftest_group_hooks(group,gitlab_ee):
239+
ifnotgitlab_ee:
240+
pytest.skip("Requires GitLab EE to run")
239241
hook=group.hooks.create({"url":"http://hook.url"})
240242
asserthookingroup.hooks.list()
241243

‎tests/functional/conftest.py‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,11 @@ def is_gitlab_ee(gl: gitlab.Gitlab) -> bool:
226226
returnFalse
227227

228228

229+
@pytest.fixture(scope="session")
230+
defgitlab_ee(gl)->bool:
231+
returnis_gitlab_ee(gl=gl)
232+
233+
229234
@pytest.fixture(scope="session")
230235
defgitlab_runner(gl):
231236
container="gitlab-runner-test"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp