fastmcp/tests/client
Jeremiah Lowin 3321644ad3
Replace subprocess tests with in-process async servers (#2006)
* Use anyio as testing backend

* Remove asyncio markers

* Update streamable http tests

* Replace all subprocess tests

* Replace anyio task groups with asyncio context managers in tests

- Convert run_server_async from anyio task group pattern to asyncio.create_task with async context manager
- Remove task_group fixture from conftest
- Update all test fixtures to use async with run_server_async pattern
- Remove TaskGroup imports from all test files
- Tests now work with pytest-asyncio instead of pytest-anyio

* Update test_github_provider_integration.py
2025-10-19 10:47:54 -04:00
..
auth Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
transports Fix path resolution in install commands (#1951) 2025-09-29 20:04:12 -04:00
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
test_client.py Add Pydantic-compatible input validation (#2073) 2025-10-14 11:49:30 -07:00
test_elicitation.py Enable more type checking rules (#1775) 2025-09-07 11:11:44 -04:00
test_logs.py Fix log handler to accept any JSON-serializable data type (#2102) 2025-10-15 10:20:04 -07:00
test_notifications.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_oauth_callback_xss.py Escape all HTML to prevent XSS attack (#2090) 2025-10-14 12:30:21 -07:00
test_openapi_experimental.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_openapi_legacy.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_progress.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_roots.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_sampling.py Fallback to a Completions API when Sampling is not available (#1145) 2025-08-21 07:49:29 -04:00
test_sse.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00
test_stdio.py feat: expose errlog on stdio transport (#1991) 2025-10-11 18:33:06 -04:00
test_streamable_http.py Replace subprocess tests with in-process async servers (#2006) 2025-10-19 10:47:54 -04:00