MCPcopy
hub / github.com/Aider-AI/aider / test_run_cmd

Method test_run_cmd

tests/basic/test_linter.py:31–38  ·  view source on GitHub ↗
(self, mock_popen)

Source from the content-addressed store, hash-verified

29
30 @patch("subprocess.Popen")
31 def test_run_cmd(self, mock_popen):
32 mock_process = MagicMock()
33 mock_process.returncode = 0
34 mock_process.stdout.read.side_effect = ("", None)
35 mock_popen.return_value = mock_process
36
37 result = self.linter.run_cmd("test_cmd", "test_file.py", "code")
38 self.assertIsNone(result)
39
40 def test_run_cmd_win(self):
41 if os.name != "nt":

Callers

nothing calls this directly

Calls 1

run_cmdMethod · 0.80

Tested by

no test coverage detected