Files
buryan-infra/ops/ai/tests/test_tool_gateway_server.py
T
architect 7735ddff28
lint / hygiene (pull_request) Failing after 27s
lint / hygiene (push) Failing after 19s
standard / check (push) Successful in 8s
standard / check (pull_request) Successful in 7s
[STAGE5] Tool Gateway runtime + hub-tools service
2026-11-27 21:13:08 +03:00

15 lines
447 B
Python

import sys, unittest
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from tool_gateway_server import tools
class GatewayServerTests(unittest.TestCase):
def test_policy_loads(self):
t = tools()
self.assertIn("catalog.read", t)
self.assertEqual(t["catalog.read"]["mode"], "read")
self.assertTrue(t["notify.send"]["approval"])
if __name__ == "__main__":
unittest.main()