hack-house/.venv/lib/python3.12/site-packages/tests/extensions/openapi/utils.py
leetcrypt bb1d662ee1 chore: rename project coven → hack-house ⛧
Rebrand the Rust client crate (coven/ → hh/, package+binary "hack-house"),
README, CLI strings, and branch (coven → hack-house). Gitea repo renamed
cmd-chat → hack-house to match. Crypto/server logic unchanged; selftest +
golden-vector test still green, binary is now `hack-house`.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 13:29:14 -07:00

15 lines
359 B
Python

from typing import Any
from sanic import Sanic
def get_spec(app: Sanic) -> dict[str, Any]:
test_client = app.test_client
_, response = test_client.get("/docs/openapi.json")
return response.json
def get_path(app: Sanic, path: str, method: str = "get") -> dict[str, Any]:
spec = get_spec(app)
return spec["paths"][path][method.lower()]