Skip to content

Commit 76ee90b

Browse files
committed
ruff format tests/client/config/test_yaml_functionality.py
1 parent 54d173e commit 76ee90b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tests/client/config/test_yaml_functionality.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,26 @@ def test_streamable_http_server(mcp_yaml_config_file: Path):
8686
def test_npx_filesystem_server(mcp_yaml_config_file: Path):
8787
"""Test the filesystem server configuration with full command string and multiple arguments."""
8888
config = MCPServersConfig.from_file(mcp_yaml_config_file)
89-
89+
9090
# Should have the filesystem server
9191
assert "filesystem" in config.servers
92-
92+
9393
# Verify the server configuration
9494
filesystem_server = config.servers["filesystem"]
9595
assert isinstance(filesystem_server, StdioServerConfig)
9696
assert filesystem_server.type == "stdio" # Should be auto-inferred from command field
97-
assert filesystem_server.command == "npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /path/to/other/allowed/dir"
97+
assert (
98+
filesystem_server.command
99+
== "npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /path/to/other/allowed/dir"
100+
)
98101
assert filesystem_server.args is None # No explicit args
99102
assert filesystem_server.env is None # No environment variables
100-
103+
101104
# Test the effective command and args parsing
102105
assert filesystem_server.effective_command == "npx"
103106
assert filesystem_server.effective_args == [
104-
"-y",
105-
"@modelcontextprotocol/server-filesystem",
106-
"/Users/username/Desktop",
107-
"/path/to/other/allowed/dir"
107+
"-y",
108+
"@modelcontextprotocol/server-filesystem",
109+
"/Users/username/Desktop",
110+
"/path/to/other/allowed/dir",
108111
]

0 commit comments

Comments
 (0)