Skip to content

Commit 78abcca

Browse files
Python: Apply ruff-format to MCP exclusion test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ea0406e commit 78abcca

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python/tests/unit/connectors/mcp/test_mcp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ async def _fake_get_cached_tool_definition(tool_name):
453453

454454
# The call must fail (isError=True) with the correct error message
455455
assert result.root.isError is True, "Calling an excluded function should return an error"
456-
assert any(
457-
"Unknown tool" in c.text for c in result.root.content if hasattr(c, "text")
458-
), f"Expected 'Unknown tool' error, got: {result.root.content}"
456+
assert any("Unknown tool" in c.text for c in result.root.content if hasattr(c, "text")), (
457+
f"Expected 'Unknown tool' error, got: {result.root.content}"
458+
)
459459
assert not side_effect_called, "Excluded function's side effect should not have fired"

0 commit comments

Comments
 (0)