(*args, **kwargs)
| 10 | def test_install_editor(): |
| 11 | called = [] |
| 12 | def fake_popen(*args, **kwargs): |
| 13 | called.append({ |
| 14 | 'args': args, |
| 15 | 'kwargs': kwargs, |
| 16 | }) |
| 17 | return mock.MagicMock(**{'wait.return_value': 0}) |
| 18 | editorhooks.install_editor('foo -l {line} -f {filename}', wait=False) |
| 19 | |
| 20 | with mock.patch('subprocess.Popen', fake_popen): |
nothing calls this directly
no outgoing calls
no test coverage detected