def test_normal_user_cannot_make_another_user_superuser(
    normal_user_client: R2RClient, ):
    """A normal user tries to update another user to superuser, should fail."""
    # Create another user
    email = f"regular_{uuid.uuid4()}@test.com"
    password = "not_superuser"
    new_user_id = normal_user_client.users.create(email, password).results.id

    # Try updating their superuser status
    with pytest.raises(R2RException) as exc_info:
        normal_user_client.users.update(new_user_id, is_superuser=True)
    assert exc_info.value.status_code == 403, (
        "Non-superuser should not grant superuser status.")
A normal user tries to update another user to superuser, should fail.
py/tests/integration/test_collections_users_interaction.py