v0.5.7: openapi.json кешируется в памяти — 33KB без перегенерации на каждый запрос

This commit is contained in:
2026-08-02 12:22:14 +04:00
parent 607a93f8d4
commit 32d1ecc5a3
3 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -371,7 +371,7 @@ def test_stands_isolated():
t("Изоляция: каждый стенд — свои инстансы", test_stands_isolated)
def test_stands_openapi():
r = requests.get(f"{BASE}/api/v1/svc/openapi.json")
r = requests.get(f"{BASE}/api/v1/svc/openapi.json", timeout=30)
spec = js(r)
servers = [s["url"] for s in spec["servers"]]
assert len(servers) == 3, f"expected 3 servers, got {len(servers)}"