@@ -355,9 +355,7 @@ class TestGetFileImageHandling:
355355 async def test_image_returns_image_content (self , nc_mcp : McpTestHelper ) -> None :
356356 await nc_mcp .create_test_dir ()
357357 await nc_mcp .client .dav_put (f"{ TEST_BASE_DIR } /test.png" , _TINY_PNG , content_type = "image/png" )
358- result = await nc_mcp .mcp ._tool_manager .call_tool (
359- "get_file" , {"path" : f"{ TEST_BASE_DIR } /test.png" }
360- )
358+ result = await nc_mcp .mcp ._tool_manager .call_tool ("get_file" , {"path" : f"{ TEST_BASE_DIR } /test.png" })
361359 assert isinstance (result , list )
362360 item = result [0 ] # type: ignore[index]
363361 assert item .type == "image" # type: ignore[union-attr]
@@ -394,9 +392,7 @@ async def test_jpeg_returns_image_content(self, nc_mcp: McpTestHelper) -> None:
394392 await nc_mcp .create_test_dir ()
395393 jpeg_data = b"\xff \xd8 \xff \xe0 " + b"\x00 " * 100 + b"\xff \xd9 "
396394 await nc_mcp .client .dav_put (f"{ TEST_BASE_DIR } /test.jpg" , jpeg_data , content_type = "image/jpeg" )
397- result = await nc_mcp .mcp ._tool_manager .call_tool (
398- "get_file" , {"path" : f"{ TEST_BASE_DIR } /test.jpg" }
399- )
395+ result = await nc_mcp .mcp ._tool_manager .call_tool ("get_file" , {"path" : f"{ TEST_BASE_DIR } /test.jpg" })
400396 assert isinstance (result , list )
401397 item = result [0 ] # type: ignore[index]
402398 assert item .type == "image" # type: ignore[union-attr]
0 commit comments