Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
d8d02f6
1
Parent(s): dfd1df8
platform independent path
Browse files
tests/server/test_server_interactions.py
CHANGED
|
@@ -473,10 +473,13 @@ class TestToolParameters:
|
|
| 473 |
assert isinstance(path, Path)
|
| 474 |
return str(path)
|
| 475 |
|
|
|
|
|
|
|
|
|
|
| 476 |
async with Client(mcp) as client:
|
| 477 |
-
result = await client.call_tool("send_path", {"path":
|
| 478 |
assert isinstance(result[0], TextContent)
|
| 479 |
-
assert result[0].text ==
|
| 480 |
|
| 481 |
async def test_path_type_error(self):
|
| 482 |
mcp = FastMCP()
|
|
|
|
| 473 |
assert isinstance(path, Path)
|
| 474 |
return str(path)
|
| 475 |
|
| 476 |
+
# Use a platform-independent path
|
| 477 |
+
test_path = Path("tmp") / "test.txt"
|
| 478 |
+
|
| 479 |
async with Client(mcp) as client:
|
| 480 |
+
result = await client.call_tool("send_path", {"path": str(test_path)})
|
| 481 |
assert isinstance(result[0], TextContent)
|
| 482 |
+
assert result[0].text == str(test_path)
|
| 483 |
|
| 484 |
async def test_path_type_error(self):
|
| 485 |
mcp = FastMCP()
|