Skip to content

Commit 9c878a4

Browse files
chore: correct test_groups.py test
The test was checking twice if the same group3 was not in the returned list. Should have been checking for group3 and group4. Also added a test that only skipped one group and checked that the group was not in the returned list and a non-skipped group was in the list.
1 parent 2cd15ac commit 9c878a4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/functional/api/test_groups.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ def test_groups(gl):
3636

3737
filtered_groups = gl.groups.list(skip_groups=[group3.id, group4.id])
3838
assert group3 not in filtered_groups
39+
assert group4 not in filtered_groups
40+
41+
filtered_groups = gl.groups.list(skip_groups=[group3.id])
3942
assert group3 not in filtered_groups
43+
assert group4 in filtered_groups
4044

4145
group1.members.create(
4246
{"access_level": gitlab.const.OWNER_ACCESS, "user_id": user.id}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy