Files
buryan-infra/ops/ai/tests/test_tool_gateway.py
T
architect 29fe3881a8
lint / hygiene (push) Failing after 22s
lint / hygiene (pull_request) Failing after 26s
standard / check (pull_request) Successful in 11s
[STAGE5] Allow local gateway tools in validation; tests 7/7
2026-11-30 00:44:57 +03:00

19 lines
595 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:
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__":
unittest.main()