mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 05:24:18 +02:00
Merge branch 'main' into return-values
This commit is contained in:
commit
ed9f0a4555
1 changed files with 5 additions and 2 deletions
|
|
@ -547,10 +547,13 @@ class TestToolParameters:
|
|||
assert isinstance(path, Path)
|
||||
return str(path)
|
||||
|
||||
# Use a platform-independent path
|
||||
test_path = Path("tmp") / "test.txt"
|
||||
|
||||
async with Client(mcp) as client:
|
||||
result = await client.call_tool("send_path", {"path": "/tmp/test.txt"})
|
||||
result = await client.call_tool("send_path", {"path": str(test_path)})
|
||||
assert isinstance(result[0], TextContent)
|
||||
assert result[0].text == "/tmp/test.txt"
|
||||
assert result[0].text == str(test_path)
|
||||
|
||||
async def test_path_type_error(self):
|
||||
mcp = FastMCP()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue