v0.5.7: openapi.json кешируется в памяти — 33KB без перегенерации на каждый запрос
This commit is contained in:
+1
-1
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user