Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

678 B
Raw Blame
from services.tools.tool_labels_service import ToolLabelsService


def test_list_tool_labels_returns_default_labels() -> None:
    result = ToolLabelsService.list_tool_labels()
    assert isinstance(result, list)
    assert len(result) > 0


def test_list_tool_labels_items_are_tool_labels() -> None:
    from core.tools.entities.tool_entities import ToolLabel

    result = ToolLabelsService.list_tool_labels()
    for label in result:
        assert isinstance(label, ToolLabel)


def test_list_tool_labels_matches_default_values() -> None:
    from core.tools.entities.values import default_tool_labels

    assert ToolLabelsService.list_tool_labels() is default_tool_labels