15 lines
447 B
Python
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()
|