fastmcp/tests/client/tasks
Jeremiah Lowin 87b4a6fb99 Refactor Client class into mixins for better organization
Split the monolithic Client class into focused mixin classes:
- ClientToolsMixin (tools_client.py)
- ClientPromptsMixin (prompts.py)
- ClientResourcesMixin (resources.py)
- ClientTaskManagementMixin (task_management.py)

Also:
- Extract timeout normalization helpers to utilities/timeout.py
- Split SSETransport into its own module (transports/sse.py)
- Clean up unused imports across client modules
- Fix bare except clauses to catch specific McpError

Note: ty reports unresolved-attribute errors on mixin classes because
it doesn't understand that mixins will be composed with Client. This is
a known limitation of mixin typing in Python. The code is functionally
correct and all tests pass.
2026-01-19 09:21:38 -05:00
..
conftest.py Remove enable_tasks setting, enable task protocol by default 2025-12-09 09:34:42 -05:00
test_client_prompt_tasks.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_client_resource_tasks.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_client_task_notifications.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_client_task_protocol.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_client_tool_tasks.py Refactor Client class into mixins for better organization 2026-01-19 09:21:38 -05:00
test_task_context_validation.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_task_result_caching.py Add TaskConfig for SEP-1686 execution modes 2025-12-06 21:01:11 -05:00