From e78a8d6353427bad0055f116e94f471997ee4979 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sat, 20 Feb 2021 18:54:30 -0800 Subject: [PATCH] fix: test_update_group() dependency on ordering Since there are two groups we can't depend on the one we changed to always be the first one returned. Instead fetch the group we want and then test our assertion against that group. --- tools/functional/cli/test_cli_v4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/functional/cli/test_cli_v4.py b/tools/functional/cli/test_cli_v4.py index 4f78c0c09..a63c1b1b5 100644 --- a/tools/functional/cli/test_cli_v4.py +++ b/tools/functional/cli/test_cli_v4.py @@ -42,7 +42,7 @@ def test_update_group(gitlab_cli, gl, group): assert ret.success - group = gl.groups.list(description=description)[0] + group = gl.groups.get(group.id) assert group.description == description