mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-22 18:46:16 +00:00
trim providers.list unit tests
This commit is contained in:
parent
6092341d90
commit
7a091281f1
1 changed files with 2 additions and 4 deletions
|
|
@ -32,9 +32,8 @@ class TestLlamaStackAsLibraryClientInitialization:
|
|||
model="test", messages=[{"role": "user", "content": "test"}], stream=True
|
||||
)
|
||||
),
|
||||
lambda client: client.providers.list(),
|
||||
],
|
||||
ids=["models.list", "chat.completions.create", "chat.completions.create_stream", "providers.list"],
|
||||
ids=["models.list", "chat.completions.create", "chat.completions.create_stream"],
|
||||
)
|
||||
def test_sync_client_proper_error_without_initialization(self, api_call):
|
||||
"""Test that sync client raises ValueError with helpful message when not initialized."""
|
||||
|
|
@ -52,9 +51,8 @@ class TestLlamaStackAsLibraryClientInitialization:
|
|||
[
|
||||
lambda client: client.models.list(),
|
||||
lambda client: client.chat.completions.create(model="test", messages=[{"role": "user", "content": "test"}]),
|
||||
lambda client: client.providers.list(),
|
||||
],
|
||||
ids=["models.list", "chat.completions.create", "providers.list"],
|
||||
ids=["models.list", "chat.completions.create"],
|
||||
)
|
||||
async def test_async_client_proper_error_without_initialization(self, api_call):
|
||||
"""Test that async client raises ValueError with helpful message when not initialized."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue