async def METHOD_NAME(self, session, agent, work_queue):
    now = pendulum.now("UTC")
    result = await models.agents.update_agent(
        session=session,
        agent_id=agent.id,
        agent=schemas.core.Agent(
            last_activity_time=now, work_queue_id=work_queue.id
        ),
    )
    assert result
    updated_agent = await models.agents.read_agent(
        session=session, agent_id=agent.id
    )
    assert updated_agent.id == agent.id
    # relevant attributes should be updated
    assert updated_agent.last_activity_time == now
    assert updated_agent.work_queue_id == agent.work_queue_id
    # unset attributes should be ignored
    assert updated_agent.name == agent.name