async def METHOD_NAME(self, setup_update_group, snapshot, data_layer):
    client, group = setup_update_group
    resp = await client.patch(
        f"/groups/{group.id}",
        data={
            "name": "Technicians",
            "permissions": {"create_sample": True, "upload_file": True},
        },
    )
    assert resp.status == 200
    assert await resp.json() == snapshot
    # Ensure that members users are updated with new permissions.
    users = await asyncio.gather(
        *[
            data_layer.users.get(user["_id"])
            async for user in client.db.users.find({})
        ]
    )
    assert users == snapshot(name="users")