File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
tests/unittests/flows/llm_flows Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -917,9 +917,10 @@ async def test_long_running_tool_not_detected_as_orphaned():
917917 for content in llm_request .contents :
918918 for part in content .parts :
919919 if part .function_response :
920- assert part .function_response .response != contents ._ORPHANED_CALL_ERROR_RESPONSE , (
921- "Long-running tool should not be treated as orphaned"
922- )
920+ assert (
921+ part .function_response .response
922+ != contents ._ORPHANED_CALL_ERROR_RESPONSE
923+ ), "Long-running tool should not be treated as orphaned"
923924
924925
925926@pytest .mark .asyncio
@@ -976,9 +977,9 @@ async def test_mixed_long_running_and_orphaned_calls():
976977 }
977978
978979 # Only orphaned_call should have synthetic response
979- assert "orphaned_call" in response_ids , (
980- "Genuine orphaned call should be healed"
981- )
982- assert "long_running_call" not in response_ids , (
983- "Long-running call should NOT be healed"
984- )
980+ assert (
981+ "orphaned_call" in response_ids
982+ ), "Genuine orphaned call should be healed"
983+ assert (
984+ "long_running_call" not in response_ids
985+ ), "Long-running call should NOT be healed"
You can’t perform that action at this time.
0 commit comments