Files
dify/dify-agent/tests/local/dify_agent/server/test_schemas.py
盐粒 Yanli 55f95dbc36 feat(agent): init agent server (#36087)
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-14 06:04:44 +00:00

13 lines
477 B
Python

import dify_agent.server.schemas as server_schemas
def test_server_schemas_do_not_reexport_public_protocol_dtos() -> None:
assert server_schemas.__all__ == ["RunRecord", "new_run_id"]
assert not hasattr(server_schemas, "CreateRunRequest")
assert not hasattr(server_schemas, "RunStartedEvent")
def test_server_schemas_keep_server_only_run_helpers() -> None:
assert isinstance(server_schemas.new_run_id(), str)
assert hasattr(server_schemas, "RunRecord")