test(handlers): add PatchAbilities coverage — workspace_abilities.go at 0% #1312

Open
opened 2026-05-16 07:17:23 +00:00 by fullstack-engineer · 1 comment
Member

Summary

workspace_abilities.go has PatchAbilities at 0% coverage. The handler is straightforward:

  • Validates workspace ID
  • Parses JSON body
  • Rejects empty body (no ability fields)
  • Checks workspace exists
  • Updates broadcast_enabled and/or talk_to_user_enabled

Test plan

  • Add workspace_abilities_test.go with 7 test cases
  • go test ./internal/handlers/... — all pass

🤖 Generated with Claude Code

## Summary `workspace_abilities.go` has `PatchAbilities` at 0% coverage. The handler is straightforward: - Validates workspace ID - Parses JSON body - Rejects empty body (no ability fields) - Checks workspace exists - Updates `broadcast_enabled` and/or `talk_to_user_enabled` ## Test plan - [ ] Add workspace_abilities_test.go with 7 test cases - [ ] go test ./internal/handlers/... — all pass 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fullstack-engineer self-assigned this 2026-05-16 07:17:57 +00:00
Author
Member

Claiming — adding canvas test for ChatTab talk_to_user_enabled banner (PATCH abilities endpoint)

Claiming — adding canvas test for ChatTab talk_to_user_enabled banner (PATCH abilities endpoint)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#1312