16 lines
489 B
Python
16 lines
489 B
Python
import sys, unittest
|
|
from pathlib import Path
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from tool_gateway import load_tools
|
|
|
|
class GatewayTests(unittest.TestCase):
|
|
def test_tools_have_gateway(self):
|
|
tools = load_tools()
|
|
self.assertGreaterEqual(len(tools), 3)
|
|
for t in tools:
|
|
self.assertTrue(t["gateway"].startswith("http"))
|
|
self.assertFalse(t.get("direct_prod", False))
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|