Skip to content

Commit 069e486

Browse files
authored
Apply suggestion from @enyst
1 parent 66d45a7 commit 069e486

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

tests/tools/file_editor/test_basic_operations.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -612,17 +612,6 @@ def test_insert_missing_line_param(editor):
612612
editor(command="insert", path=str(test_file), new_str="Missing insert line")
613613

614614

615-
def test_undo_edit_command_not_available():
616-
"""Test that undo_edit command is no longer available."""
617-
from typing import get_args
618-
619-
from openhands.tools.file_editor.definition import CommandLiteral
620-
621-
# Verify undo_edit is not in the allowed commands
622-
allowed_commands = get_args(CommandLiteral)
623-
assert "undo_edit" not in allowed_commands
624-
assert set(allowed_commands) == {"view", "create", "str_replace", "insert"}
625-
626615

627616
def test_view_directory_with_hidden_files(tmp_path):
628617
editor = FileEditor()

0 commit comments

Comments
 (0)