summaryrefslogtreecommitdiff
path: root/tests/functional/api/test_groups.py
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-28 01:24:13 +0200
committerGitHub <noreply@github.com>2022-07-28 01:24:13 +0200
commit510ec30f30e7ff8466b58d2661b67076de9d234b (patch)
treeda3116aa356818cb2a865b047de9ef160bbfffa7 /tests/functional/api/test_groups.py
parent194ee0100c2868c1a9afb161c15f3145efb01c7c (diff)
parent1af44ce8761e6ee8a9467a3e192f6c4d19e5cefe (diff)
downloadgitlab-510ec30f30e7ff8466b58d2661b67076de9d234b.tar.gz
Merge pull request #1699 from python-gitlab/jlvillal/arrays
fix: use the [] after key names for array variables in `params`
Diffstat (limited to 'tests/functional/api/test_groups.py')
-rw-r--r--tests/functional/api/test_groups.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py
index 88e5a36..7688273 100644
--- a/tests/functional/api/test_groups.py
+++ b/tests/functional/api/test_groups.py
@@ -99,6 +99,11 @@ def test_groups(gl):
assert len(group1.members.list()) == 3
assert len(group2.members.list()) == 2
+ # Test `user_ids` array
+ result = group1.members.list(user_ids=[user.id, 99999])
+ assert len(result) == 1
+ assert result[0].id == user.id
+
group1.members.delete(user.id)
assert user not in group1.members.list()
assert group1.members_all.list()