diff options
author | John L. Villalovos <john@sodarock.com> | 2021-11-19 22:07:45 -0800 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-11-19 22:31:02 -0800 |
commit | 9c878a4090ddb9c0ef63d06b57eb0e4926276e2f (patch) | |
tree | accd852ce30d462f12b992d97bd912c9308b9f39 /tests/functional/api/test_groups.py | |
parent | 2cd15ac44d8a45fa2d0dcab80cc933e3871db7f8 (diff) | |
download | gitlab-jlvillal/func_test.tar.gz |
chore: correct test_groups.py testjlvillal/func_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.
Diffstat (limited to 'tests/functional/api/test_groups.py')
-rw-r--r-- | tests/functional/api/test_groups.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/functional/api/test_groups.py b/tests/functional/api/test_groups.py index 665c933..77562c1 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} |