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

Method test_shell_is_false

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

Source from the content-addressed store, hash-verified

469@patch("skillspector.providers._agent_cli.subprocess.Popen")
470class TestRunAgentCLICodex:
471 def test_shell_is_false(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None:
472 mock_popen.return_value = _make_ok_process(_GOOD_CODEX_JSONL.encode())
473 run_agent_cli("codex", PROMPT, model="o4-mini")
474 call_kwargs = mock_popen.call_args[1]
475 assert call_kwargs.get("shell") is False
476
477 def test_prompt_in_stdin_not_argv(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None:
478 proc = _make_ok_process(_GOOD_CODEX_JSONL.encode())

Callers

nothing calls this directly

Calls 2

run_agent_cliFunction · 0.90
_make_ok_processFunction · 0.85

Tested by

no test coverage detected