Test display of long string result (>500 chars).
(capsys)
| 242 | |
| 243 | |
| 244 | def test_display_tool_call_long_string(capsys): |
| 245 | """Test display of long string result (>500 chars).""" |
| 246 | long_string = "x" * 600 |
| 247 | result = ToolCallResult( |
| 248 | tool_name="test", success=True, result=long_string, error=None |
| 249 | ) |
| 250 | display_tool_call_result(result, console=None) |
| 251 | captured = capsys.readouterr() |
| 252 | output_text = captured.out + captured.err |
| 253 | |
| 254 | # Should show truncation message |
| 255 | assert "truncated" in output_text.lower() or "x" * 500 in output_text |
| 256 | |
| 257 | |
| 258 | def test_display_tool_call_other_type_serializable(capsys): |
nothing calls this directly
no test coverage detected