Python lint: Ruff rules for comprehensions and performance (#512)
This commit is contained in:
parent
8c9269c34b
commit
babb477dff
1 changed files with 15 additions and 14 deletions
|
|
@ -115,7 +115,7 @@ async def test_read_resource_file(mcp: FastMCP):
|
|||
@pytest.mark.anyio
|
||||
async def test_delete_file(mcp: FastMCP, test_dir: Path):
|
||||
await mcp.call_tool(
|
||||
"delete_file", arguments=dict(path=str(test_dir / "example.py"))
|
||||
"delete_file", arguments={"path": str(test_dir / "example.py")}
|
||||
)
|
||||
assert not (test_dir / "example.py").exists()
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ async def test_delete_file(mcp: FastMCP, test_dir: Path):
|
|||
@pytest.mark.anyio
|
||||
async def test_delete_file_and_check_resources(mcp: FastMCP, test_dir: Path):
|
||||
await mcp.call_tool(
|
||||
"delete_file", arguments=dict(path=str(test_dir / "example.py"))
|
||||
"delete_file", arguments={"path": str(test_dir / "example.py")}
|
||||
)
|
||||
res_iter = await mcp.read_resource("file://test_dir/example.py")
|
||||
res_list = list(res_iter)
|
||||
|
|
|
|||
Loading…
Reference in a new issue