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

Function test_editor_failure_exception

tests/test_termui.py:560–564  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

558
559
560def test_editor_failure_exception():
561 with patch("subprocess.Popen") as mock_popen:
562 mock_popen.return_value.wait.return_value = 1
563 with pytest.raises(click.ClickException, match="Editing failed"):
564 Editor(editor="vi").edit_files(["f.txt"])
565
566
567def test_editor_nonexistent_exception():

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…