2026-02-14 19:05:33 +00:00
|
|
|
# ruff: noqa: INP001, S101
|
|
|
|
|
|
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
|
|
from app.main import app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def test_openapi_includes_agent_webhook_payload_read_endpoint() -> None:
|
|
|
|
|
schema = app.openapi()
|
|
|
|
|
|
|
|
|
|
path = "/api/v1/agent/boards/{board_id}/webhooks/{webhook_id}/payloads/{payload_id}"
|
|
|
|
|
assert path in schema["paths"]
|
|
|
|
|
op = schema["paths"][path]["get"]
|
|
|
|
|
tags = set(op.get("tags", []))
|
|
|
|
|
assert "agent-worker" in tags
|
2026-03-04 23:26:31 +05:30
|
|
|
assert op.get("x-llm-intent") == "agent_board_webhook_payload_read"
|