Change-detectors, tautologies, source-reading tests, redundant duplicates, mock-echo tests and dead/unrunnable tests. Per-test rationale in the lane ledger (category + reason for every removal).
16 lines
365 B
Python
16 lines
365 B
Python
"""Regression tests for invalid/None terminal command handling."""
|
|
|
|
import json
|
|
|
|
from tools.terminal_tool import terminal_tool
|
|
|
|
|
|
|
|
|
|
def test_terminal_tool_none_command_returns_clean_error():
|
|
result = json.loads(terminal_tool(None)) # type: ignore[arg-type]
|
|
|
|
assert result["exit_code"] == -1
|
|
assert result["status"] == "error"
|
|
assert result["error"]
|