fastmcp/tests/client
Jeremiah Lowin 0600834da4 Fix single-element list unwrapping in tool content
Single-element lists like [1] were being incorrectly unwrapped to "1"
in unstructured content while multi-element lists remained as lists.
This created inconsistent behavior where the structure was lost for
single items.

This fix ensures lists always preserve their structure in unstructured
content regardless of length, making behavior consistent and predictable.

Also removes pretty-printing from JSON serialization for more compact
output across tools, prompts, and resources.

Fixes #1064

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 12:07:16 -04:00
..
__init__.py clean up test inits 2025-05-31 19:32:08 -04:00
test_client.py Fix single-element list unwrapping in tool content 2025-07-07 12:07:16 -04:00
test_elicitation.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -04:00
test_logs.py Remove empty parens 2025-06-04 15:37:55 -04:00
test_notifications.py Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_openapi.py Ensure multi-client configurations use new ProxyClient (#1045) 2025-07-05 11:57:03 -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 Add structured content & update almost all tests 2025-06-27 15:40:52 -04:00
test_sse.py Update docs and test 2025-06-20 13:06:48 -04:00
test_stdio.py Improve early error handling for stdio transport 2025-06-28 21:37:48 -04:00
test_streamable_http.py Ensure tests use stateless mode 2025-07-03 19:55:49 -04:00