File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,6 @@ async def test_edit_contents_handler_missing_hash(tmp_path):
367
367
]
368
368
}
369
369
370
- # file_hashが欠けている場合は例外が発生することを確認
371
370
with pytest .raises (RuntimeError ) as exc_info :
372
371
await edit_contents_handler .run_tool (edit_args )
373
372
assert "Missing required field: file_hash" in str (exc_info .value )
@@ -455,16 +454,13 @@ async def test_edit_contents_handler_multiple_patches(tmp_path):
455
454
]
456
455
}
457
456
458
- # 編集を適用
459
457
result = await edit_contents_handler .run_tool (edit_args )
460
458
461
- # 結果の検証
462
459
assert len (result ) == 1
463
460
edit_results = json .loads (result [0 ].text )
464
461
assert file_path in edit_results
465
462
assert edit_results [file_path ]["result" ] == "ok"
466
463
467
- # ファイルの内容を確認
468
464
with open (file_path ) as f :
469
465
content = f .read ()
470
466
assert "Modified Line 2" in content
@@ -523,7 +519,6 @@ async def test_edit_contents_relative_path():
523
519
async def test_edit_contents_absolute_path ():
524
520
handler = EditTextFileContentsHandler ()
525
521
abs_path = str (Path ("/absolute/path/file.txt" ).absolute ())
526
- # モックを使用して実際のファイル操作を避ける
527
522
handler .editor .edit_file_contents = lambda * args , ** kwargs : {"result" : "success" }
528
523
529
524
result = await handler .run_tool (
You can’t perform that action at this time.
0 commit comments