Alexander Whitestone
|
064f6e0c1d
|
test: add unit tests for kimi_delegation.py
Tests / lint (pull_request) Failing after 30s
Tests / test (pull_request) Has been skipped
Covers all public and private functions:
- exceeds_local_capacity: keyword detection, word count threshold, edge cases
- _slugify: special chars, truncation, whitespace handling
- _build_research_template: output structure, priority, KIMI_READY_LABEL
- _extract_action_items: checkboxes, numbered lists, Action/TODO/Next step prefixes, dedup
- _get_or_create_label: existing label lookup, label creation, error degradation
- create_kimi_research_issue: disabled config, success, API errors, exceptions
- poll_kimi_issue: disabled config, closed issue, timeout
- index_kimi_artifact: empty content, success, exception fallback
- extract_and_create_followups: no items, unconfigured Gitea, multi-issue creation
- delegate_research_to_kimi: missing task/question validation, delegation to create_kimi_research_issue
Fixes #1295
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
2026-03-23 21:53:45 -04:00 |
|