[claude] Add unit tests for backlog_triage.py (#1293) #1307
Reference in New Issue
Block a user
Delete Branch "claude/issue-1293"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #1293
Adds
tests/timmy/test_backlog_triage.pywith comprehensive unit tests for the backlog triage module.Coverage
_extract_tags— bracket tag parsing, label extraction, lowercasing_score_scope/_score_acceptance/_score_alignment— all scoring branches including meta-tag penalties and max capsscore_issue— bug/feature/research/philosophy/refactor classification, P0 detection, blocked detection, age calculation, edge cases (null body, invalid date)decide— all decision branches: skip (philosophy, assigned, low score), flag_alex (blocked), assign_kimi (research/kimi-ready), assign_claude (P0 bug, ready feature/refactor)_build_audit_comment— all action typesexecute_decision— dry-run (no API calls), live assign_claude (comment + patch), comment failure sets error, flag_alex (comment only)BacklogTriageLoop— default state, custom interval, stop(), disabled Gitea fast-path, cycle count, full cycle with mocked HTTPScoredIssueproperties andTriageCycleResultdefaultsAll 577 unit tests pass.