Skip to content

Commit

Permalink
all multiple models to pytest --vlm-model-id
Browse files Browse the repository at this point in the history
  • Loading branch information
mattf committed Aug 22, 2024
1 parent 63b9f0e commit bb2fa1d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/ai-endpoints/tests/integration_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def pytest_addoption(parser: pytest.Parser) -> None:
parser.addoption(
"--vlm-model-id",
action="store",
help="Run tests for a specific vlm model",
nargs="+",
help="Run tests for a specific vlm model or list of models",
)
parser.addoption(
"--all-models",
Expand Down Expand Up @@ -120,8 +121,8 @@ def get_all_known_models() -> List[Model]:

if "vlm_model" in metafunc.fixturenames:
models = ["nvidia/neva-22b"]
if model := metafunc.config.getoption("vlm_model_id"):
models = [model]
if model_list := metafunc.config.getoption("vlm_model_id"):
models = model_list
if metafunc.config.getoption("all_models"):
models = [
model.id
Expand Down

0 comments on commit bb2fa1d

Please sign in to comment.