Проект разделен на два репозитория

This commit is contained in:
mi
2026-08-14 15:42:45 +03:00
parent e06a77ee1d
commit bbef7a30c9
521 changed files with 2597 additions and 2302 deletions
@@ -0,0 +1,29 @@
from pathlib import Path
import yaml
def test_openapi_31_exact_routes_and_responses() -> None:
document = yaml.safe_load(
(Path(__file__).parents[1] / "openapi.yaml").read_text(encoding="utf-8")
)
assert document["openapi"] == "3.1.0"
paths = document["paths"]
assert set(paths) == {
"/internal/safety/v2/messages/check",
"/internal/safety/v2/messages/tasks/{task_id}",
"/health/live",
"/health/ready",
}
assert set(paths["/internal/safety/v2/messages/check"]["post"]["responses"]) == {
"200",
"202",
"400",
"401",
"403",
"409",
"429",
"500",
"503",
}
assert document["components"]["securitySchemes"]["ServiceToken"]["name"] == "X-Service-Token"