mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 04:00:42 +00:00
disable tests with api_filter
This commit is contained in:
parent
73e860a6e6
commit
2febfb51c0
1 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,8 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from llama_stack_client import LlamaStackClient
|
from llama_stack_client import LlamaStackClient
|
||||||
|
|
||||||
from llama_stack import LlamaStackAsLibraryClient
|
from llama_stack import LlamaStackAsLibraryClient
|
||||||
|
|
@ -38,6 +40,7 @@ class TestInspect:
|
||||||
assert "/inspect/routes" in paths or "/v1/inspect/routes" in paths
|
assert "/inspect/routes" in paths or "/v1/inspect/routes" in paths
|
||||||
assert "/health" in paths or "/v1/health" in paths
|
assert "/health" in paths or "/v1/health" in paths
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="api_filter attribute disabled")
|
||||||
def test_list_routes_filter_by_deprecated(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
def test_list_routes_filter_by_deprecated(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
||||||
"""Test list_routes with deprecated filter."""
|
"""Test list_routes with deprecated filter."""
|
||||||
response = llama_stack_client.routes.list(api_filter="deprecated")
|
response = llama_stack_client.routes.list(api_filter="deprecated")
|
||||||
|
|
@ -52,6 +55,7 @@ class TestInspect:
|
||||||
openai_routes = [r for r in routes if "/openai/" in r.route]
|
openai_routes = [r for r in routes if "/openai/" in r.route]
|
||||||
assert len(openai_routes) > 0, "Deprecated filter should include /openai/ routes"
|
assert len(openai_routes) > 0, "Deprecated filter should include /openai/ routes"
|
||||||
|
|
||||||
|
@pytest.mark.skip(reason="api_filter attribute disabled")
|
||||||
def test_list_routes_filter_by_v1(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
def test_list_routes_filter_by_v1(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
||||||
"""Test list_routes with v1 filter."""
|
"""Test list_routes with v1 filter."""
|
||||||
response = llama_stack_client.routes.list(api_filter="v1")
|
response = llama_stack_client.routes.list(api_filter="v1")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue