Skip to content

Commit c82fa4f

Browse files
author
Yoshihiro Takahara
committed
test: Add test_validate_environment for text editor
1 parent a1f9026 commit c82fa4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_text_editor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,11 @@ async def test_validate_file_path(editor):
386386
editor._validate_file_path("../path/to/file.txt")
387387
with pytest.raises(ValueError, match="Path traversal not allowed"):
388388
editor._validate_file_path("folder/../file.txt")
389+
390+
391+
@pytest.mark.asyncio
392+
async def test_validate_environment():
393+
"""Test environment validation."""
394+
editor = TextEditor()
395+
# Currently just verifies it can be called without error
396+
editor._validate_environment()

0 commit comments

Comments
 (0)