mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-26 01:01:40 +00:00
Add comprehensive test coverage for the clarify_tool module: - TestClarifyToolBasics: 5 tests for core functionality - Simple questions, questions with choices, error handling - TestClarifyToolChoicesValidation: 5 tests for choices parameter - MAX_CHOICES enforcement, empty/whitespace handling, type conversion - TestClarifyToolCallbackHandling: 3 tests for callback behavior - Exception handling, question/response trimming - TestCheckClarifyRequirements: 1 test verifying always-true behavior - TestClarifySchema: 6 tests verifying OpenAI function schema - Required/optional parameters, maxItems constraint Total: 20 tests covering all public functions and edge cases. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_approval.py | ||
| test_clarify_tool.py | ||
| test_code_execution.py | ||
| test_delegate.py | ||
| test_file_tools.py | ||
| test_fuzzy_match.py | ||
| test_interrupt.py | ||
| test_patch_parser.py | ||
| test_registry.py | ||
| test_todo_tool.py | ||