Browse Source

test: fix the user group pagination test

pull/430/head
Richard Nemeth 1 year ago
committed by elias.hamacher
parent
commit
683d0210e1
  1. 4
      tests/test_keycloak_admin.py

4
tests/test_keycloak_admin.py

@ -360,10 +360,10 @@ def test_user_groups_pagination(admin: KeycloakAdmin, realm: str):
groups = admin.get_user_groups(user_id=user_id)
assert len(groups) == admin.PAGE_SIZE + 50, len(groups)
groups = admin.get_user_groups(user_id=user_id, query={"first": 100})
groups = admin.get_user_groups(user_id=user_id, query={"first": 100, "max": -1, "search": ""})
assert len(groups) == 50, len(groups)
groups = admin.get_user_groups(user_id=user_id, query={"max": 20})
groups = admin.get_user_groups(user_id=user_id, query={"max": 20, "first": -1, "search": ""})
assert len(groups) == 20, len(groups)

Loading…
Cancel
Save