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
This usage was not part of the non regression suite, and was never documented.
However I agree it would be a good addition if most parameters still make sense.
I will have a look at it and see what can be done here.
Follow-up of #144 (comment)
The following example works with pytest-httpx 0.26 but fails with pytest-httpx 0.30:
httpx.ASGITransport
inheritshttpx.AsyncBaseTransport
and pytest-httpx only mockshttpx.AsyncHTTPTransport
.I don't think it would be a good idea to mock the base transport, because its handle-Method is "abstract" and should remain so.
Maybe it should mock the asgi/wsgi transport in addition to the http transport or allow passing a list of transport classes to mock.
The Starlette test client inherts
httpx.BaseTransport
: https://github.com/encode/starlette/blob/master/starlette/testclient.py#L239My current workaround is this fixture:
The text was updated successfully, but these errors were encountered: