Files
buryan-infra/ops/ai/tests/test_tool_gateway.py
T
architect 649386f0b8
lint / hygiene (push) Failing after 22s
lint / hygiene (pull_request) Failing after 1m3s
standard / check (pull_request) Successful in 8s
[STAGE5] Tool Gateway policy registry + test
2026-11-27 21:09:53 +03:00

16 lines
489 B
Python

import sys, unittest
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from tool_gateway import load_tools
class GatewayTests(unittest.TestCase):
def test_tools_have_gateway(self):
tools = load_tools()
self.assertGreaterEqual(len(tools), 3)
for t in tools:
self.assertTrue(t["gateway"].startswith("http"))
self.assertFalse(t.get("direct_prod", False))
if __name__ == "__main__":
unittest.main()