refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation.
This commit is contained in:
@@ -8,8 +8,9 @@ from src import mcp_client
|
||||
@pytest.mark.asyncio
|
||||
async def test_execute_tool_calls_concurrently_timing():
|
||||
"""
|
||||
Verifies that _execute_tool_calls_concurrently runs tools in parallel.
|
||||
Total time should be approx 0.5s for 3 tools each taking 0.5s.
|
||||
|
||||
Verifies that _execute_tool_calls_concurrently runs tools in parallel.
|
||||
Total time should be approx 0.5s for 3 tools each taking 0.5s.
|
||||
"""
|
||||
# 1. Setup mock tool calls (Gemini style)
|
||||
class MockGeminiCall:
|
||||
@@ -65,8 +66,9 @@ async def test_execute_tool_calls_concurrently_timing():
|
||||
@pytest.mark.asyncio
|
||||
async def test_execute_tool_calls_concurrently_exception_handling():
|
||||
"""
|
||||
Verifies that if one tool call fails, it doesn't crash the whole group if caught,
|
||||
but currently gather is used WITHOUT return_exceptions=True, so it should re-raise.
|
||||
|
||||
Verifies that if one tool call fails, it doesn't crash the whole group if caught,
|
||||
but currently gather is used WITHOUT return_exceptions=True, so it should re-raise.
|
||||
"""
|
||||
class MockGeminiCall:
|
||||
def __init__(self, name, args):
|
||||
@@ -97,4 +99,4 @@ async def test_execute_tool_calls_concurrently_exception_handling():
|
||||
qa_callback=None,
|
||||
r_idx=0,
|
||||
provider="gemini"
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user