(self, mock_popen: MagicMock, _mock_binary: MagicMock)
| 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 |
nothing calls this directly
no test coverage detected