14 lines
416 B
Python
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()
|