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
* Add HTTPX2 in-process mock support
``MockVWS`` now intercepts ``httpx2`` requests, synchronous and
asynchronous, alongside ``requests`` and ``httpx``.
``respx`` speaks ``httpx``, whose request, response and exception classes
are distinct from the ``httpx2`` ones, so ``httpx2`` gets a mock path of
its own. That path patches the method which ``httpx2`` clients use to
choose a transport for a request, so requests and responses on it are
native ``httpx2`` objects from end to end, every client is intercepted
whether it was made before or after the mock started, and no process-wide
``httpx2.alias_httpx()`` call is needed.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Bring the HTTPX2 paths to full coverage
CI requires 100% coverage, and the asynchronous refuse and pass-through
branches of the HTTPX2 transport were not exercised, nor were the
``(connect, read)`` timeout tuple and the close methods of the test
transports.
Add asynchronous blocking and ``real_http`` tests, close tests for both
test transports, and give the synchronous timeout test a timeout tuple.
Drop the context manager methods of the test transports, which the
``vws-python`` transport protocols do not ask for.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* Point the stand-in transports at their follow-up issue
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
``MockVWS`` now intercepts ``httpx2`` requests, synchronous and asynchronous, alongside ``requests`` and ``httpx``. The ``httpx2`` path uses native ``httpx2`` requests and responses, and does not need ``httpx2.alias_httpx()``.
0 commit comments