()
| 558 | |
| 559 | |
| 560 | def 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 | |
| 567 | def test_editor_nonexistent_exception(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…