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
Also, mocking a response stream with content from local file would be of interest in some cases, e.g. large test responses. It should probably take either a file-path string or a file-like object.
stream=MockStream(file=...)
Other things to consider is form data and multipart responses.
The text was updated successfully, but these errors were encountered:
It might be of use if RESPX had a
MockStream
utility that could be passed as stream when creating ahttpx.Response
.The
MockStream
should suport both sync and async contexts.Ideas...
Also, mocking a response stream with content from local file would be of interest in some cases, e.g. large test responses. It should probably take either a file-path string or a file-like object.
Other things to consider is form data and multipart responses.
The text was updated successfully, but these errors were encountered: