Files
vLLM/tests/v1/engine/test_kv_transfer_rejection.py
T
Raphaël RiallandandSimon Veitner c32495d58f [watermark] compatibility validation (#56801)
Signed-off-by: Raphael Rialland <raphael.rialland@mistral.ai>
Signed-off-by: Simon Veitner <sveitner@redhat.com>
Co-authored-by: Simon Veitner <sveitner@redhat.com>
2026-10-05 14:37:13 -04:00

28 lines
744 B
Python

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
from types import SimpleNamespace
from unittest.mock import AsyncMock
import pytest
from vllm.v1.engine.async_llm import AsyncLLM
@pytest.mark.asyncio
async def test_kv_transfer_rejection_stub_disables_watermarking():
engine = object.__new__(AsyncLLM)
add_request = AsyncMock()
engine.engine_core = SimpleNamespace(
add_request_async=add_request,
shutdown=lambda **kwargs: None,
)
await engine.notify_kv_transfer_request_rejected(
"request",
{"do_remote_prefill": True},
)
request = add_request.call_args.args[0]
assert request.sampling_params.watermarking is False