Spaces:
Running
Running
Merge branch 'main' into return-values
Browse files
tests/server/test_server_interactions.py
CHANGED
|
@@ -547,10 +547,13 @@ class TestToolParameters:
|
|
| 547 |
assert isinstance(path, Path)
|
| 548 |
return str(path)
|
| 549 |
|
|
|
|
|
|
|
|
|
|
| 550 |
async with Client(mcp) as client:
|
| 551 |
-
result = await client.call_tool("send_path", {"path":
|
| 552 |
assert isinstance(result[0], TextContent)
|
| 553 |
-
assert result[0].text ==
|
| 554 |
|
| 555 |
async def test_path_type_error(self):
|
| 556 |
mcp = FastMCP()
|
|
|
|
| 547 |
assert isinstance(path, Path)
|
| 548 |
return str(path)
|
| 549 |
|
| 550 |
+
# Use a platform-independent path
|
| 551 |
+
test_path = Path("tmp") / "test.txt"
|
| 552 |
+
|
| 553 |
async with Client(mcp) as client:
|
| 554 |
+
result = await client.call_tool("send_path", {"path": str(test_path)})
|
| 555 |
assert isinstance(result[0], TextContent)
|
| 556 |
+
assert result[0].text == str(test_path)
|
| 557 |
|
| 558 |
async def test_path_type_error(self):
|
| 559 |
mcp = FastMCP()
|