summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-05-06 21:06:55 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-05-06 21:06:55 +0200
commita014774a6a2523b73601a1930c44ac259d03a50e (patch)
tree677eaa16bd3e34e0d918ccb7c3f5c055115628b0
parent603a351c71196a7f516367fbf90519f9452f3c55 (diff)
downloadgitlab-a014774a6a2523b73601a1930c44ac259d03a50e.tar.gz
test(functional): add test for skip_groups list filter
-rw-r--r--tools/functional/api/test_groups.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/functional/api/test_groups.py b/tools/functional/api/test_groups.py
index 5a70650..c44c175 100644
--- a/tools/functional/api/test_groups.py
+++ b/tools/functional/api/test_groups.py
@@ -33,6 +33,10 @@ def test_groups(gl):
assert group3.parent_id == p_id
assert group2.subgroups.list()[0].id == group3.id
+ filtered_groups = gl.groups.list(skip_groups=[group3.id, group4.id])
+ assert group3 not in filtered_groups
+ assert group3 not in filtered_groups
+
group1.members.create(
{"access_level": gitlab.const.OWNER_ACCESS, "user_id": user.id}
)