mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
fix: test for get_environment_editor()
The test for `EDITOR` preference failed to clean up any existing value of `VISUAL` which may be present in the environment pytest is run in.
This commit is contained in:
parent
1f4a63d6db
commit
3510799fca
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def test_get_environment_editor():
|
|||
assert get_environment_editor("default") == "default"
|
||||
|
||||
# Test EDITOR precedence
|
||||
with patch.dict(os.environ, {"EDITOR": "vim"}):
|
||||
with patch.dict(os.environ, {"EDITOR": "vim"}, clear=True):
|
||||
assert get_environment_editor() == "vim"
|
||||
|
||||
# Test VISUAL overrides EDITOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue