conftest.py 353 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import pytest


def pytest_addoption(parser):
    parser.addoption(
        "--subtests", action="store", type=str, default=None, help="subtest ids"
    )


@pytest.fixture
def subtests(request):
    return request.config.getoption("--subtests")