Nick Misasi
|
529e8d9a05
|
test(06-02): add unit tests for User/Team/Channel API methods
Add comprehensive test suite covering:
Wrapper type tests:
- User, Team, Channel from_proto/to_proto round-trips
- UserStatus, TeamMember, ChannelMember conversions
Client method tests:
- User: get_user success, not found error, gRPC error, create_user
- Team: get_team, create_team_member, get_teams_for_user
- Channel: get_channel, add_channel_member, get_direct_channel, search
Error handling tests:
- PermissionDeniedError (HTTP 403)
- ValidationError (HTTP 400)
- AlreadyExistsError (HTTP 409)
All 21 tests use mocked stubs for fast execution.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-01-19 09:55:18 -05:00 |
|