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

Method test_timeout_is_set

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

Source from the content-addressed store, hash-verified

484 assert PROMPT not in str(token)
485
486 def test_timeout_is_set(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None:
487 proc = _make_ok_process(_GOOD_CODEX_JSONL.encode())
488 mock_popen.return_value = proc
489 run_agent_cli("codex", PROMPT, model="o4-mini")
490 proc.wait.assert_called_once()
491 timeout_arg = proc.wait.call_args.kwargs.get("timeout")
492 assert isinstance(timeout_arg, (int, float))
493 assert timeout_arg > 0
494
495 def test_env_scrubbed(
496 self, mock_popen: MagicMock, _mock_binary: MagicMock, monkeypatch: pytest.MonkeyPatch

Callers

nothing calls this directly

Calls 2

run_agent_cliFunction · 0.90
_make_ok_processFunction · 0.85

Tested by

no test coverage detected