(self, mock_popen: MagicMock, _mock_binary: MagicMock)
| 377 | @patch("skillspector.providers._agent_cli.subprocess.Popen") |
| 378 | class TestRunAgentCLIClaude: |
| 379 | def test_shell_is_false(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None: |
| 380 | mock_popen.return_value = _make_ok_process(_GOOD_CLAUDE_OUTPUT.encode()) |
| 381 | run_agent_cli("claude", PROMPT, model=MODEL) |
| 382 | call_kwargs = mock_popen.call_args[1] |
| 383 | assert call_kwargs.get("shell") is False |
| 384 | |
| 385 | def test_prompt_in_stdin_not_argv(self, mock_popen: MagicMock, _mock_binary: MagicMock) -> None: |
| 386 | proc = _make_ok_process(_GOOD_CLAUDE_OUTPUT.encode()) |
nothing calls this directly
no test coverage detected