MCPcopy Create free account
hub / github.com/NVIDIA/SkillSpector / test_timeout_raises

Method test_timeout_raises

tests/unit/test_agent_cli.py:509–514  ·  view source on GitHub ↗
(self, mock_popen: MagicMock, _mock_binary: MagicMock)

Source from the content-addressed store, hash-verified

507 run_agent_cli("codex", PROMPT, model="o4-mini")
508
509 def test_timeout_raises(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None:
510 mock_popen.return_value = _make_ok_process(
511 b"", wait_exc=subprocess.TimeoutExpired(cmd="codex", timeout=5)
512 )
513 with pytest.raises(AgentCLIError, match="timed out"):
514 run_agent_cli("codex", PROMPT, model="o4-mini")
515
516 def test_no_message_in_output_raises(
517 self, mock_popen: MagicMock, _mock_binary: MagicMock

Callers

nothing calls this directly

Calls 2

run_agent_cliFunction · 0.90
_make_ok_processFunction · 0.85

Tested by

no test coverage detected