From 9c878a4090ddb9c0ef63d06b57eb0e4926276e2f Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 19 Nov 2021 22:07:45 -0800 Subject: [PATCH] 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. --- tests/functional/api/test_groups.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py index 665c9330e..77562c17d 100644 --- a/tests/functional/api/test_groups.py +++ b/tests/functional/api/test_groups.py @@ -36,7 +36,11 @@ def test_groups(gl): filtered_groups = gl.groups.list(skip_groups=[group3.id, group4.id]) assert group3 not in filtered_groups + assert group4 not in filtered_groups + + filtered_groups = gl.groups.list(skip_groups=[group3.id]) assert group3 not in filtered_groups + assert group4 in filtered_groups group1.members.create( {"access_level": gitlab.const.OWNER_ACCESS, "user_id": user.id} 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