Use 120 characters instead of 88 (#856)
This commit is contained in:
parent
f7265f7b91
commit
543961968c
1 changed files with 687 additions and 2142 deletions
|
|
@ -61,9 +61,7 @@ async def test_resource_template_edge_cases():
|
|||
await mcp.read_resource("resource://users/123/posts") # Missing post_id
|
||||
|
||||
with pytest.raises(ValueError, match="Unknown resource"):
|
||||
await mcp.read_resource(
|
||||
"resource://users/123/posts/456/extra"
|
||||
) # Extra path component
|
||||
await mcp.read_resource("resource://users/123/posts/456/extra") # Extra path component
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
|
|
@ -110,11 +108,7 @@ async def test_resource_template_client_interaction():
|
|||
|
||||
# Verify invalid resource URIs raise appropriate errors
|
||||
with pytest.raises(Exception): # Specific exception type may vary
|
||||
await session.read_resource(
|
||||
AnyUrl("resource://users/123/posts")
|
||||
) # Missing post_id
|
||||
await session.read_resource(AnyUrl("resource://users/123/posts")) # Missing post_id
|
||||
|
||||
with pytest.raises(Exception): # Specific exception type may vary
|
||||
await session.read_resource(
|
||||
AnyUrl("resource://users/123/invalid")
|
||||
) # Invalid template
|
||||
await session.read_resource(AnyUrl("resource://users/123/invalid")) # Invalid template
|
||||
|
|
|
|||
Loading…
Reference in a new issue