refactor: Remove unused file_editor import and mock in test_editor.py

This commit is contained in:
Paul Gauthier (aider) 2024-11-21 09:58:53 -08:00
parent 5abadc31a3
commit cd81c2619b

View file

@ -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,
): ):