From 2fb361bd0e10ba0b141891f68d62aef084de51f4 Mon Sep 17 00:00:00 2001 From: Pedro Crespo-Valero <32402063+pcrespov@users.noreply.github.com> Date: Tue, 10 Dec 2024 00:23:17 +0100 Subject: [PATCH] tests --- .../unit/with_dbs/01/groups/test_groups_handlers_users.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/web/server/tests/unit/with_dbs/01/groups/test_groups_handlers_users.py b/services/web/server/tests/unit/with_dbs/01/groups/test_groups_handlers_users.py index 6805a4383726..2ed66232bbaf 100644 --- a/services/web/server/tests/unit/with_dbs/01/groups/test_groups_handlers_users.py +++ b/services/web/server/tests/unit/with_dbs/01/groups/test_groups_handlers_users.py @@ -324,8 +324,7 @@ async def test_group_access_rights( == f"/{API_VTAG}/groups/{assigned_group['gid']}/users" ) for i, user in enumerate(users): - params = {"uid": user["id"]} if i % 2 == 0 else {"email": user["email"]} - resp = await client.post(f"{add_group_user_url}", json=params) + resp = await client.post(f"{add_group_user_url}", json={"uid": user["id"]}) data, error = await assert_status(resp, expected.no_content) # 3. user 1 shall be a manager