[STAGE5] Tool Gateway runtime + hub-tools service
This commit is contained in:
1 parent
649386f0b8
commit
7735ddff28
4 files changed
+135
-1
No files matched your search
@@ -0,0 +1,14 @@
|
||||
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()
|
||||
Reference in new issue
Block a user