From 7b7a958106790290f602b343f5d022c50205daf3 Mon Sep 17 00:00:00 2001 From: Eric Huang Date: Thu, 5 Jun 2025 13:41:47 -0700 Subject: [PATCH] test: skip files integrations tests for library client # What does this PR do? ## Test Plan --- 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"