Files
buryan-infra/ops/ai/tests/test_gateway_agent.py
T
architect 87cc382376
lint / hygiene (push) Failing after 16s
lint / hygiene (pull_request) Failing after 21s
standard / check (pull_request) Successful in 8s
[STAGE5] Gateway-only smoke agent
2026-11-27 22:21:22 +03:00

14 lines
416 B
Python

import sys, unittest
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
from gateway_agent import call
class AgentGatewayTests(unittest.TestCase):
def test_agent_uses_gateway(self):
d = call("catalog.read")
self.assertEqual(d.get("tool"), "catalog.read")
self.assertGreater(len(d.get("body") or ""), 10)
if __name__ == "__main__":
unittest.main()