Skip to content

Commit e61a0ac

Browse files
Varun SharmaCopilot
andcommitted
style: fix ruff formatting for patch.object call
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5573271 commit e61a0ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/server/mcpserver/test_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,7 @@ async def test_handle_call_tool_defensive_exception_handler(self):
308308
mcp.add_tool(tool_fn)
309309

310310
async with Client(mcp) as client:
311-
with patch.object(
312-
mcp, "call_tool", new_callable=AsyncMock, side_effect=RuntimeError("internal db leak")
313-
):
311+
with patch.object(mcp, "call_tool", new_callable=AsyncMock, side_effect=RuntimeError("internal db leak")):
314312
result = await client.call_tool("tool_fn", {"x": 1, "y": 2})
315313
assert result.is_error is True
316314
content = result.content[0]

0 commit comments

Comments
 (0)