MCPcopy
hub / github.com/pallets/click / test_editor_path_normalization

Function test_editor_path_normalization

tests/test_termui.py:511–519  ·  view source on GitHub ↗
(editor_cmd, filenames, expected_args)

Source from the content-addressed store, hash-verified

509 ],
510)
511def test_editor_path_normalization(editor_cmd, filenames, expected_args):
512 with patch("subprocess.Popen") as mock_popen:
513 mock_popen.return_value.wait.return_value = 0
514 Editor(editor=editor_cmd).edit_files(filenames)
515
516 mock_popen.assert_called_once()
517 args = mock_popen.call_args[1].get("args") or mock_popen.call_args[0][0]
518 assert args == expected_args
519 assert mock_popen.call_args[1].get("shell") is None
520
521
522@pytest.mark.skipif(not WIN, reason="Windows-specific editor paths")

Callers

nothing calls this directly

Calls 2

EditorClass · 0.90
edit_filesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…