This commit is contained in:
lda
2026-08-30 05:53:43 +07:00 Verified
parent 1cdf822825
commit db1c344e0f
6 changed files with 1100 additions and 3 deletions
+27
View File
@@ -0,0 +1,27 @@
import unittest
from fastmcp import FastMCP
from ipython_mcp.app import app
class MCPAppTests(unittest.IsolatedAsyncioTestCase):
async def test_exports_typed_ipython_tools_from_plain_fastmcp(self):
self.assertIsInstance(app, FastMCP)
tools = await app.list_tools()
self.assertEqual(
{tool.name for tool in tools},
{
"run_code",
"list_shells",
"get_shell",
"create_shell",
"get_last_shell",
},
)
if __name__ == "__main__":
unittest.main()