mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
refactor: Simplify editor discovery and command handling logic
This commit is contained in:
parent
5b13105d58
commit
d65e3f73df
2 changed files with 4 additions and 14 deletions
|
@ -84,10 +84,6 @@ def test_discover_editor_override():
|
|||
assert discover_editor("code") == "code"
|
||||
assert discover_editor('vim -c "set noswapfile"') == 'vim -c "set noswapfile"'
|
||||
|
||||
# Test invalid editor command
|
||||
with pytest.raises(RuntimeError):
|
||||
discover_editor('vim "unclosed quote')
|
||||
|
||||
|
||||
def test_pipe_editor_with_fake_editor():
|
||||
# Create a temporary Python script that logs its arguments
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue