mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
refactor: Remove unused file_editor import and mock in test_editor.py
This commit is contained in:
parent
5abadc31a3
commit
cd81c2619b
1 changed files with 0 additions and 2 deletions
|
@ -8,7 +8,6 @@ from aider.editor import (
|
||||||
DEFAULT_EDITOR_OS_X,
|
DEFAULT_EDITOR_OS_X,
|
||||||
DEFAULT_EDITOR_WINDOWS,
|
DEFAULT_EDITOR_WINDOWS,
|
||||||
discover_editor,
|
discover_editor,
|
||||||
file_editor,
|
|
||||||
get_environment_editor,
|
get_environment_editor,
|
||||||
pipe_editor,
|
pipe_editor,
|
||||||
print_status_message,
|
print_status_message,
|
||||||
|
@ -98,7 +97,6 @@ def test_pipe_editor():
|
||||||
# Mock the file operations and editor call
|
# Mock the file operations and editor call
|
||||||
with (
|
with (
|
||||||
patch("aider.editor.write_temp_file") as mock_write,
|
patch("aider.editor.write_temp_file") as mock_write,
|
||||||
patch("aider.editor.file_editor") as mock_editor,
|
|
||||||
patch("builtins.open") as mock_open,
|
patch("builtins.open") as mock_open,
|
||||||
patch("os.remove") as mock_remove,
|
patch("os.remove") as mock_remove,
|
||||||
):
|
):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue