async def test_process_event_generator():
    """Test event handlers that generate multiple updates."""
    gen_state = GenState()  # pyright: ignore [reportCallIssue]
    event = Event(
        token="t",
        name="go",
        payload={"c": 5},
    )
    gen = gen_state._process(event)

    count = 0
    async for update in gen:
        count += 1
        if count == 6:
            assert update.delta == {}
            assert update.final
        else:
            assert gen_state.value == count
            assert update.delta == {
                GenState.get_full_name(): {"value": count},
            }
            assert not update.final

    assert count == 6
Test event handlers that generate multiple updates.
tests/units/test_state.py