mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 03:50:00 +00:00
24 lines
830 B
Python
24 lines
830 B
Python
# 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.
|
|
|
|
import pytest
|
|
from llama_stack_client import LlamaStackClient
|
|
|
|
from llama_stack import LlamaStackAsLibraryClient
|
|
|
|
|
|
class TestInspect:
|
|
@pytest.mark.asyncio
|
|
def test_health(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
|
health = llama_stack_client.inspect.health()
|
|
assert health is not None
|
|
assert health.status == "OK"
|
|
|
|
@pytest.mark.asyncio
|
|
def test_version(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
|
|
version = llama_stack_client.inspect.version()
|
|
assert version is not None
|
|
assert version.version is not None
|