fastmcp/tests/client/tasks
Jeremiah Lowin 049bd22827
Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665)
* Replace type: ignore[attr-defined] with isinstance assertions in tests

* Fix isinstance assertions in failing tests

- Fix enum test to check for ResponseEnum instead of str
- Fix binary resource test to check for BlobResourceContents instead of TextResourceContents
- Fix Root type tests to check attributes directly instead of isinstance checks

* Fix type errors without using type: ignore

- Remove execution methods from TransformingProvider (only handles transformations)
- Add execution methods to base Provider class with default implementations
- Fix type narrowing in tests using cast() instead of type: ignore
- Fix PromptResult type handling in prompt render tests
- Fix type narrowing in middleware test for arguments and structured_content
2025-12-21 16:37:20 -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 [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_client_resource_tasks.py [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -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 [2.14] SEP-1686 tasks (#2378) 2025-12-04 20:10:35 -05:00
test_prompt_task_mcp_message.py Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665) 2025-12-21 16:37:20 -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