From 92b59a3377791df67db610fe505f421591174309 Mon Sep 17 00:00:00 2001 From: ehhuang Date: Thu, 5 Jun 2025 13:42:10 -0700 Subject: [PATCH] test: skip files integrations tests for library client (#2407) # What does this PR do? ## Test Plan LLAMA_STACK_CONFIG=fireworks pytest -s -v tests/integration/files/test_files.py::test_openai_client_basic_operations --- tests/integration/files/test_files.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/files/test_files.py b/tests/integration/files/test_files.py index 2275e7eb9..8375507dc 100644 --- a/tests/integration/files/test_files.py +++ b/tests/integration/files/test_files.py @@ -6,9 +6,15 @@ from io import BytesIO +import pytest -def test_openai_client_basic_operations(openai_client): +from llama_stack.distribution.library_client import LlamaStackAsLibraryClient + + +def test_openai_client_basic_operations(openai_client, client_with_models): """Test basic file operations through OpenAI client.""" + if isinstance(client_with_models, LlamaStackAsLibraryClient): + pytest.skip("OpenAI files are not supported when testing with library client yet.") client = openai_client test_content = b"files test content"