Skip to content

Commit 4027141

Browse files
committed
linting
1 parent 7e3b415 commit 4027141

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

tests/issues/test_100_tool_listing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
pytestmark = pytest.mark.anyio
66

7+
78
@pytest.mark.anyio
89
async def test_list_tools_returns_all_tools():
910
mcp = FastMCP("TestTools")
@@ -28,4 +29,3 @@ def dummy_tool_func():
2829
tool_names = [tool.name for tool in tools]
2930
expected_names = [f"tool_{i}" for i in range(num_tools)]
3031
assert sorted(tool_names) == sorted(expected_names), "Tool names don't match expected names"
31-

tests/server/fastmcp/resources/test_resource_template.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,7 @@ def func_with_optional_typed_params(
506506
def func_opt_str(key: str, opt_s: str = "default_val") -> dict[str, str]:
507507
return {"key": key, "opt_s": opt_s}
508508

509-
template_str = ResourceTemplate.from_function(
510-
fn=func_opt_str, uri_template="test://{key}", name="test_opt_str"
511-
)
509+
template_str = ResourceTemplate.from_function(fn=func_opt_str, uri_template="test://{key}", name="test_opt_str")
512510
params_empty_str = {"key": "mykey"}
513511
resource6 = await template_str.create_resource("test://mykey?opt_s=", params_empty_str)
514512
result6_str = await resource6.read()

tests/server/fastmcp/test_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,6 @@ def get_data() -> str:
807807

808808

809809
class TestServerResourceTemplates:
810-
811810
@pytest.mark.anyio
812811
async def test_resource_with_uri_params(self):
813812
"""Test that a resource with URI parameters is automatically a template"""

0 commit comments

Comments
 (0)