Files
vllm-omni/tests/helpers/fixtures/pytest_run_args.py
T
2026-08-29 18:42:33 +08:00

25 lines
664 B
Python

# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
"""Pytest CLI options and the fixtures that expose them."""
from __future__ import annotations
import pytest
def pytest_addoption(parser):
parser.addoption(
"--run-level",
action="store",
default="core_model",
choices=["core_model", "advanced_model", "full_model"],
help="Test level to run: L2, L3, L4",
)
@pytest.fixture(scope="session")
def run_level(request) -> str:
"""Session test level from ``--run-level`` (see CI five-level docs)."""
return request.config.getoption("--run-level")