(self)
| 138 | |
| 139 | @pytest.mark.asyncio |
| 140 | async def test_timeout(self): |
| 141 | hook = HookConfig(type="command", command="sleep 10", timeout=100) |
| 142 | result = await _execute_command_hook( |
| 143 | hook, {"hook_event": "PreToolUse"}, timeout_ms=100 |
| 144 | ) |
| 145 | assert result.exit_code == -1 |
| 146 | assert result.blocking_error is not None |
| 147 | assert "timed out" in result.blocking_error.lower() |
| 148 | |
| 149 | @pytest.mark.asyncio |
| 150 | async def test_stdin_data_passed(self): |
nothing calls this directly
no test coverage detected