fix vllm unit tests, openai.resources.models.AsyncModels.list is not async

This commit is contained in:
Matthew Farrellee 2025-09-23 10:46:07 -04:00
parent 3ea30c0a9c
commit 3fb643b847

View file

@ -62,7 +62,7 @@ from llama_stack.providers.remote.inference.vllm.vllm import (
@pytest.fixture(scope="module")
def mock_openai_models_list():
with patch("openai.resources.models.AsyncModels.list", new_callable=AsyncMock) as mock_list:
with patch("openai.resources.models.AsyncModels.list") as mock_list:
yield mock_list