Skip to content

test_streamable_http.py isn't covered by test coverage #1678

Closed

Description

@felixweinberger

Initial Checks

Description

We have a lot of pragma: no cover in this test file:

class ServerTest(Server): # pragma: no cover

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

Activity

  1. added
    enhancement
    ready for work
    P3
    on Dec 2, 2025
  2. perhapzz commented on Mar 25, 2026

    @perhapzz

    Hi, I'd like to work on this!

    Proposed approach (split into small PRs):

    PR 1: Refactor basic_server, event_server, and json_server fixtures from multiprocessing.Process + uvicorn to in-process httpx.ASGITransport, following the pattern already used in test_1363_race_condition_streamable_http.py and test_streamable_http_manager.py. This removes ~12 pragma: no cover markers.

    PR 2: Refactor the context_aware_server fixture similarly, removing the remaining ~4 markers.

    This keeps each PR small and review-friendly. Let me know if this direction makes sense!

  3. added 3 commits that reference this issue on Mar 25, 2026
    cf5e52f
    40bfd49
    f53793d
  4. added
    needs decision
    and removed
    ready for work
    on Apr 17, 2026
  5. maxisbey commented on Aug 10, 2026

    @maxisbey
    Contributor

    This landed as part of v2, which is now released (via #2767) — closing. Feel free to reopen if there's something still outstanding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3enhancementneeds decision

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions