Dippy
Dippy copied to clipboard
tests: cover MCP wrapping, pin single-line test to a fits-width case
Follow-up to #156. The width-aware MCP layout introduced multi-line output, which left test_output_is_single_line's "no embedded newlines" invariant only conditionally true — it kept passing solely because CI has no ~/.claude/mcp.local.json and no COLUMNS, so no MCP segment is rendered to wrap.
- Pin
test_output_is_single_lineto a wideCOLUMNSso it deterministically asserts the fits-on-one-line path regardless of the runner's MCP config. - Add
TestMcpWrapping: seeds a tempHOMEwith a 12-servermcp.local.jsonand asserts the output wraps onto continuation lines at a narrow width (COLUMNS=40) and stays single-line at a wide one (COLUMNS=1000). run_statuslinegains anenvoverlay so tests can driveCOLUMNS/HOME.