Skip to content

Commit 7efbc30

Browse files
author
Gauvain Pocentek
committed
Update groups tests
Group search in gitlab 10.3 requires a query string with more than 3 characters. Not sure if feature or bug, but let's handle it.
1 parent 70e721f commit 7efbc30

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tools/python_test_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
group3 = gl.groups.create({'name': 'group3', 'path': 'group3', 'parent_id': p_id})
100100

101101
assert(len(gl.groups.list()) == 3)
102-
assert(len(gl.groups.search("1")) == 1)
102+
assert(len(gl.groups.search("oup1")) == 1)
103103
assert(group3.parent_id == p_id)
104104

105105
group1.members.create({'access_level': gitlab.Group.OWNER_ACCESS,

tools/python_test_v4.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
group3 = gl.groups.create({'name': 'group3', 'path': 'group3', 'parent_id': p_id})
205205

206206
assert(len(gl.groups.list()) == 3)
207-
assert(len(gl.groups.list(search='1')) == 1)
207+
assert(len(gl.groups.list(search='oup1')) == 1)
208208
assert(group3.parent_id == p_id)
209209

210210
group1.members.create({'access_level': gitlab.Group.OWNER_ACCESS,

0 commit comments

Comments
 (0)