Create Unit Test Suite for Core Bug Fixes #13

Open
opened 2025-10-06 09:37:09 +00:00 by aditya · 0 comments
Member

Description

Develop comprehensive unit tests validating tool command processing with nested JSON, JSON sanitization for control characters, and regex pattern fixes.

Acceptance Criteria

  • test_tool_command_processing.py with 5+ tests for nested JSON scenarios
  • test_json_sanitization.py with 10+ tests for control character handling
  • Tests include actual complex JSON from contract analyzer
  • Regression tests confirm old pattern would fail
  • Tests runnable via pytest and direct execution

Definition of Done

  • tests/unit/core/test_tool_command_processing.py created (250+ lines)
  • tests/unit/core/test_json_sanitization.py created (200+ lines)
  • All tests passing independently and with pytest
  • Code coverage >85% for tested methods
  • tests/unit/core/README.md documents test purpose
### **Description** Develop comprehensive unit tests validating tool command processing with nested JSON, JSON sanitization for control characters, and regex pattern fixes. ### **Acceptance Criteria** - test_tool_command_processing.py with 5+ tests for nested JSON scenarios - test_json_sanitization.py with 10+ tests for control character handling - Tests include actual complex JSON from contract analyzer - Regression tests confirm old pattern would fail - Tests runnable via pytest and direct execution ### **Definition of Done** - tests/unit/core/test_tool_command_processing.py created (250+ lines) - tests/unit/core/test_json_sanitization.py created (200+ lines) - All tests passing independently and with pytest - Code coverage >85% for tested methods - tests/unit/core/README.md documents test purpose
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: cleveragents/cleveragents-core#13
No description provided.