python-sdk
python-sdk copied to clipboard
test_streamable_http.py isn't covered by test coverage
Initial Checks
- [x] I confirm that I'm using the latest version of MCP Python SDK
- [x] I confirm that I searched for my issue in https://github.com/modelcontextprotocol/python-sdk/issues before opening this issue
Description
We have a lot of pragma: no cover in this test file: https://github.com/modelcontextprotocol/python-sdk/blob/f54b18a5f91b5cbab501668bd145a47245fe842e/tests/shared/test_streamable_http.py#L123
Especially on the server itself, run_app, etc etc. indicating we're not correctly capturing the test coverage here.
Discussed with @maxisbey and this is likely due to Multiprocessing so we need to restructure tests here to not use MP
Example Code
Python & MCP Python SDK
latest