[claude] Add unit tests for vassal/dispatch.py (#1193) #1200
Reference in New Issue
Block a user
Delete Branch "claude/issue-1193"
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 #1193
Changes
Expanded
tests/unit/test_vassal_dispatch.pyfrom 6 tests (75.9% coverage) to 19 tests (96.4% coverage).New tests added
_get_or_create_label: finds existing label, creates missing label, returns None on GET error, returns None on POST error, uses default color for unknown labels_apply_label_to_issue: success path, returns False when no label ID, returns False on bad status_post_dispatch_comment: success path (verifies comment body content), failure path_perform_gitea_dispatch: skips whengitea_enabled=False, skips whengitea_tokenempty, mutates record correctly on full successAll 302 unit tests pass via
tox -e unit.