fastmcp/tests/cli
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
..
__init__.py Add tests 2025-07-06 20:50:31 -04:00
test_cli.py Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665) 2025-12-21 16:37:20 -05:00
test_config.py Fix path resolution in install commands (#1951) 2025-09-29 20:04:12 -04:00
test_cursor.py Fix: URL-encode server name in Cursor deeplinks (#2369) 2025-11-04 11:26:57 -05:00
test_install.py feat: add support for Gemini CLI integration (#1709) 2025-09-06 12:08:56 -04:00
test_mcp_server_config_integration.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_mcp_server_config_schema.py Hotfix: restore --transport streamable http at CLI (#1743) 2025-09-03 17:24:22 -04:00
test_project_prepare.py Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
test_run.py Fix asyncio error when running FastMCP 1.x servers (#2084) 2025-10-14 11:24:51 -07:00
test_run_config.py Add log level support for stdio and HTTP transports (#1840) 2025-09-19 13:46:30 -04:00
test_server_args.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_shared.py Ensure test is platform agnostic 2025-07-07 09:51:12 -04:00
test_tasks.py Replace type: ignore[attr-defined] with isinstance assertions in tests (#2665) 2025-12-21 16:37:20 -05:00
test_with_argv.py Consolidate server loading logic into FileSystemSource (#1614) 2025-08-24 20:50:25 -04:00