mattermost/python-sdk/tests
Nick Misasi 324fa65c95 test(10-02): add Python integration tests for gRPC round-trip
Create end-to-end integration tests proving Python SDK communicates
correctly with gRPC servers:

API Round-trip Tests:
- test_get_server_version_round_trip: Version API call
- test_get_system_install_date_round_trip: Install date API call
- test_get_user_round_trip: User lookup with entity serialization
- test_multiple_api_calls_in_sequence: Sequential API calls

Error Propagation Tests:
- test_not_found_error: NOT_FOUND -> NotFoundError mapping
- test_permission_denied_error: PERMISSION_DENIED mapping
- test_app_error_in_response: AppError -> PluginAPIError conversion
- test_error_recovery: Client recovery after errors

Hook Invocation Tests:
- test_implemented_returns_hooks: Implemented RPC verification
- test_lifecycle_hooks_invocation: OnActivate/OnDeactivate chain
- test_message_hook_allows_post: Normal message passthrough
- test_message_hook_rejects_spam: Message rejection
- test_message_hook_modifies_post: Message modification

Complex Scenario Tests:
- test_concurrent_api_calls: Multi-threaded API calls
- test_sequential_connect_disconnect: Connection lifecycle
- test_large_message_handling: Large payload handling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 15:36:16 -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_hook_registry.py test(07-01): add hook registry unit tests 2026-01-19 11:18:33 -05:00
test_hook_runner.py test(07-01): add hook runner unit tests 2026-01-19 11:18:38 -05:00
test_hooks_command_config.py test(07-03): add comprehensive tests for remaining hooks 2026-01-19 11:41:41 -05:00
test_hooks_grpc_integration.py test(07-02): add gRPC integration tests for hook servicer 2026-01-19 11:27:41 -05:00
test_hooks_http.py test(08-02): add tests for response streaming, flush, and invalid status codes 2026-01-19 14:40:41 -05:00
test_hooks_lifecycle.py test(07-02): add tests for lifecycle and message hook semantics 2026-01-19 11:26:03 -05:00
test_hooks_messages.py test(07-02): add tests for lifecycle and message hook semantics 2026-01-19 11:26:03 -05:00
test_hooks_notifications.py test(07-03): add comprehensive tests for remaining hooks 2026-01-19 11:41:41 -05:00
test_hooks_system.py test(07-03): add comprehensive tests for remaining hooks 2026-01-19 11:41:41 -05:00
test_hooks_user_channel.py test(07-03): add comprehensive tests for remaining hooks 2026-01-19 11:41:41 -05:00
test_integration_e2e.py test(10-02): add Python integration tests for gRPC round-trip 2026-01-19 15:36:16 -05:00
test_plugin_bootstrap.py test(07-01): add plugin bootstrap smoke tests 2026-01-19 11:18:43 -05:00
test_posts_files_kv.py test(06-03): add unit tests for Post/File/KV API methods 2026-01-19 10:06:36 -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