mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-02 08:00:01 +00:00
precommit
This commit is contained in:
parent
9da092ff2d
commit
cf225c9710
6 changed files with 56 additions and 160 deletions
|
|
@ -4,10 +4,6 @@
|
|||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
import base64
|
||||
import mimetypes
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
|
|
@ -36,8 +32,6 @@ def test_register_dataset(llama_stack_client, purpose, source, provider_id):
|
|||
)
|
||||
assert dataset.identifier is not None
|
||||
assert dataset.provider_id == provider_id
|
||||
iterrow_response = llama_stack_client.datasets.iterrows(
|
||||
dataset.identifier, limit=10
|
||||
)
|
||||
iterrow_response = llama_stack_client.datasets.iterrows(dataset.identifier, limit=10)
|
||||
assert len(iterrow_response.data) == 10
|
||||
assert iterrow_response.next_index is not None
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
# All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the terms described in the LICENSE file in
|
||||
# the root directory of this source tree.
|
||||
|
||||
from llama_stack_client import LlamaStackClient
|
||||
from rich.pretty import pprint
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue