chore: add D212 lint rule to enforce Google-style docstrings (#1892)
This commit is contained in:
parent
df039bf97c
commit
d41d0c0128
1 changed files with 452 additions and 925 deletions
|
|
@ -20,8 +20,7 @@ from mcp.types import (
|
|||
|
||||
@pytest.mark.anyio
|
||||
async def test_malformed_initialize_request_does_not_crash_server():
|
||||
"""
|
||||
Test that malformed initialize requests return proper error responses
|
||||
"""Test that malformed initialize requests return proper error responses
|
||||
instead of crashing the server (HackerOne #3156202).
|
||||
"""
|
||||
# Create in-memory streams for testing
|
||||
|
|
@ -101,9 +100,7 @@ async def test_malformed_initialize_request_does_not_crash_server():
|
|||
|
||||
@pytest.mark.anyio
|
||||
async def test_multiple_concurrent_malformed_requests():
|
||||
"""
|
||||
Test that multiple concurrent malformed requests don't crash the server.
|
||||
"""
|
||||
"""Test that multiple concurrent malformed requests don't crash the server."""
|
||||
# Create in-memory streams for testing
|
||||
read_send_stream, read_receive_stream = anyio.create_memory_object_stream[SessionMessage | Exception](100)
|
||||
write_send_stream, write_receive_stream = anyio.create_memory_object_stream[SessionMessage](100)
|
||||
|
|
|
|||
Loading…
Reference in a new issue