mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 13:00:51 -04:00
Co-authored-by: Copilot <copilot@github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
13 lines
477 B
Python
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")
|