[STAGE5] Allow local gateway tools in validation; tests 7/7
lint / hygiene (push) Failing after 22s
lint / hygiene (pull_request) Failing after 26s
standard / check (pull_request) Successful in 11s

This commit is contained in:
architect committed 2026-11-30 00:44:57 +03:00
1 parent c129ac1374
commit 29fe3881a8
2 files changed
+5 -2

No files matched your search

+4 -1
View File
@@ -8,7 +8,10 @@ class GatewayTests(unittest.TestCase):
tools = load_tools()
self.assertGreaterEqual(len(tools), 3)
for t in tools:
self.assertTrue(t["gateway"].startswith("http"))
if t.get("gateway"):
self.assertTrue(t["gateway"].startswith("http"))
else:
self.assertTrue(t.get("local"), t)
self.assertFalse(t.get("direct_prod", False))
if __name__ == "__main__":
+1 -1
View File
@@ -9,7 +9,7 @@ def load_tools():
data = yaml.safe_load(PATH.read_text())
tools = data.get("tools") or []
for t in tools:
if not t.get("gateway"):
if not (t.get("gateway") or t.get("local")):
raise ValueError("tool without gateway: %s" % t.get("name"))
if t.get("direct_prod"):
raise ValueError("direct production access forbidden: %s" % t.get("name"))