mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-15 22:47:59 +00:00
25 lines
800 B
Python
25 lines
800 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
|
|
|
|
# How to run this test:
|
|
#
|
|
# pytest llama_stack/providers/tests/eval/test_eval.py
|
|
# -m "meta_reference"
|
|
# -v -s --tb=short --disable-warnings
|
|
|
|
|
|
class Testeval:
|
|
@pytest.mark.asyncio
|
|
async def test_eval_tasks_list(self, eval_stack):
|
|
# NOTE: this needs you to ensure that you are starting from a clean state
|
|
# but so far we don't have an unregister API unfortunately, so be careful
|
|
_, eval_tasks_impl, _, _, _, _ = eval_stack
|
|
response = await eval_tasks_impl.list_eval_tasks()
|
|
assert isinstance(response, list)
|
|
print(response)
|