You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: assert CORS behavior, not starlette internals; drop pragmas the docs tests cover
The lowest-direct CI cells failed on tests/docs_src/test_asgi.py reaching into
starlette's `Middleware` internals — `.kwargs` does not exist on the oldest
supported starlette. The test now drives the app over `httpx.ASGITransport`
and asserts what the page promises a browser: the preflight allows
GET/POST/DELETE and a cross-origin response exposes `Mcp-Session-Id`.
The locked cells failed at `strict-no-cover`: the docs tests execute 21 lines
marked `# pragma: no cover` — the `Image`/`Audio` helper paths, the
elicitation cancel arm, custom Starlette routes on the low-level app,
`Context.request_context` outside a request, and the
token_verifier-without-auth `ValueError`. Those markers are no longer true,
so they are removed; the full suite still reports 100% under branch coverage.
0 commit comments