Files
vllm-omni/tests/e2e/offline_inference/custom_pipeline/worker_extension.py
T
2026-03-24 15:49:11 +08:00

22 lines
754 B
Python

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""Test-only worker extension for custom diffusion pipeline E2E tests."""
from __future__ import annotations
from vllm_omni.diffusion.worker.diffusion_worker import CustomPipelineWorkerExtension
class vLLMOmniColocateWorkerExtensionForTest(CustomPipelineWorkerExtension):
"""Minimal worker extension used by tests.
This intentionally stays lightweight: we only inherit the base custom
pipeline extension and add one test function.
"""
@staticmethod
def test_extension_name() -> str:
"""Return a stable identifier for assertions in unit tests."""
return "vllm-omni-colocate-worker-extension-for-test"