test: remove obsolete nonexistence checks

This commit is contained in:
chengyongru authored and chengyongru committed 2026-09-05 23:58:38 +08:00
1 parent c08172a641
commit 3495281282
24 files changed
+8 -407

No files matched your search

-8
View File
@@ -40,10 +40,6 @@ class TestReadDescriptionFix:
tool = ReadFileTool()
assert "image" in tool.description.lower()
def test_description_no_longer_says_cannot_read_images(self):
tool = ReadFileTool()
assert "cannot read binary files or images" not in tool.description.lower()
# ---------------------------------------------------------------------------
# Read deduplication
@@ -542,7 +538,3 @@ class TestReadDescriptionUpdate:
tool = ReadFileTool()
desc = tool.description.lower()
assert "document" in desc or "docx" in desc or "xlsx" in desc or "pptx" in desc
def test_description_no_longer_says_cannot_read(self):
tool = ReadFileTool()
assert "cannot read" not in tool.description.lower()
+1 -3
View File
@@ -702,13 +702,11 @@ async def test_grep_uses_a_larger_bounded_limit_for_an_explicit_file(
assert "skipped 1 large files" in capped_result
def test_grep_schema_is_concise_and_keeps_legacy_aliases_hidden(tmp_path: Path) -> None:
def test_grep_schema_is_concise_and_hides_internal_limits(tmp_path: Path) -> None:
tool = GrepTool(workspace=tmp_path, allowed_dir=tmp_path)
properties = tool.parameters["properties"]
assert len(tool.description) < 150
assert "2 MB" not in tool.description
assert "100 MB" not in tool.description
assert "head_limit" in properties
assert "max_matches" not in properties
assert "max_results" not in properties