mattermost/python-sdk/tests
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
..
__init__.py feat(06-01): add Python SDK package scaffold with pyproject.toml 2026-01-16 14:44:29 -05:00
test_client_smoke.py test(06-01): add smoke tests for codegen and client 2026-01-16 14:45:01 -05:00
test_codegen_imports.py test(06-01): add smoke tests for codegen and client 2026-01-16 14:45:01 -05:00
test_users_teams_channels.py test(06-02): add unit tests for User/Team/Channel API methods 2026-01-19 09:55:18 -05:00