MCPcopy Create free account
hub / github.com/bcefghj/miniClaudeCode / test_find_python_files

Method test_find_python_files

tests/test_tools.py:159–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157 self.tool = GlobTool()
158
159 def test_find_python_files(self):
160 with tempfile.TemporaryDirectory() as tmpdir:
161 (Path(tmpdir) / "a.py").write_text("pass")
162 (Path(tmpdir) / "b.txt").write_text("text")
163 result = self.tool.execute({"pattern": "*.py", "directory": tmpdir})
164 self.assertFalse(result.is_error)
165 self.assertIn("a.py", result.output)
166 self.assertNotIn("b.txt", result.output)
167
168
169class TestGrepTool(unittest.TestCase):

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected