mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-15 14:22:42 +00:00
chore: remove mentions of expires_after_anchor
Removed in https://github.com/llamastack/llama-stack/pull/3604 for expires_after only. Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
parent
da35f2452e
commit
070811f855
2 changed files with 16 additions and 29 deletions
|
|
@ -258,19 +258,6 @@ class TestS3FilesImpl:
|
|||
with pytest.raises(ResourceNotFoundError, match="not found"):
|
||||
await s3_provider._get_file(uploaded.id, return_expired=True)
|
||||
|
||||
async def test_unsupported_expires_after_anchor(self, s3_provider, sample_text_file):
|
||||
"""Unsupported anchor value should raise ValueError."""
|
||||
from llama_stack.apis.files import ExpiresAfter
|
||||
|
||||
sample_text_file.filename = "test_unsupported_expires_after_anchor"
|
||||
|
||||
with pytest.raises(ValueError, match="Input should be 'created_at'"):
|
||||
await s3_provider.openai_upload_file(
|
||||
file=sample_text_file,
|
||||
purpose=OpenAIFilePurpose.ASSISTANTS,
|
||||
expires_after=ExpiresAfter(anchor="now", seconds=3600), # type: ignore
|
||||
)
|
||||
|
||||
async def test_nonint_expires_after_seconds(self, s3_provider, sample_text_file):
|
||||
"""Non-integer seconds in expires_after should raise ValueError."""
|
||||
from llama_stack.apis.files import ExpiresAfter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue